QuizMagic

Now available on:
QuizMagic on Google Play QuizMagic Windows 8 App QuizMagic on Amazon Store QuizMagic on Firefox Marketplace
Create you own quizzes

C Language

C Language
Created by Quizmagic Team on May 04, 2013 11:43 PM.
Basic quiz on C language with 15 random questions related to functions, pointers, memory allocation in C. Take this quiz to test your basic C concepts.
Top 5 Scores
rohit tiwari
138
00:27
Anonymous
132
00:21
Anonymous
131
00:31
Anonymous
130
00:42
vijay pathak
130
00:50
Questions
15
Minutes
3.5
High Score
138
00:27
Quiz Played
10.1k
times
Last played on Mar 28, 2017View comments
Congratulation!

You are in top 5 scorers.
0
0
0
0
N/A
Answering this correctly will make the indicated neighbouring questions be automatically treated as having been answered correctly.
Answering this incorrectly will make the indicated neighbouring questions be automatically treated as having been answered incorrectly.
Answering this correctly will earn you some extra points.
Answering this incorrectly will cause you to lose some points.
Answering this correctly will increase the total time available to you.
Answering this incorrectly will reduce the total time available to you.
Rate this quiz
Embed this quiz on your blog or websiteShare this quiz

Copy this HTML code and paste in your website code to run this quiz on your site.

Size:
Size:

Similar Quizzes

Sample Questions

Question 1
What does a literal means?
An alphabet
A character
A string
None of above
A string constant
Question 2
What will be output if you will compile and execute the following c code?
 
#include<stdio.h>
int main()
{
int i=320;
char *ptr=(char *)&i;
printf("%d",*ptr);
return 0;
}
64
Compile time error
320
1
None of above
Question 3
What will be output of the following c program?
#include<stdio.h>
int main(){
    int max-val=100;
    int min-val=10;
    int avg-val;
    avg-val = max-val + min-val / 2;
    printf("%d",avg-val);
    return 0;
}
None of above
55
105
60
Compilation Error
Question 4
What will be output of the following c program?
#include<stdio.h>
int main(){
    int _=5;
    int __=10;
    int ___;
    ___=_+__;
    printf("%i",___);
    return 0;
}
10
Compilation Error
15
5
None of Above
Question 5
What will be the output of the following program?
#include<stdio.h>
int main(){
    unsigned char c;
    FILE *fp;
    fp=fopen("test.txt","r");
    while((c=fgetc(fp))!=EOF)
         printf("%c",c);
    fclose(fp);
    return 0;
}
None of above.
Syntax Error.
Throw an exception.
Print the content of the file test.txt.
Print the content of the file test.txt but will enter into an infinite loop.
Question 6
What is the range of char data type in C?
1.7E-308 to 1.7E+308
-32768 to 32767
None of above
-128 to 127
-127 to 127
Question 7
The size of int data type in c is?
At least 4 bytes
At least 2 bytes
None of above
1 byte
At least 8 bytes
comments powered by Disqus
X
Other recommended quiz for you
Connect with Facebook
OR
Connect with Google
Connecting...Back

Existing users, click here to login



By registering with us, you are agreeing to TERMS AND CONDITIONS of using our products/services.