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
10k
times
Last played on Dec 07, 2016View 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?
A string constant
None of above
A string
An alphabet
A character
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;
}
1
320
None of above
Compile time error
64
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;
}
55
105
Compilation Error
60
None of above
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;
}
None of Above
10
5
Compilation Error
15
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.
Print the content of the file test.txt but will enter into an infinite loop.
Syntax Error.
Throw an exception.
Print the content of the file test.txt.
Question 6
What is the range of char data type in C?
-128 to 127
1.7E-308 to 1.7E+308
-127 to 127
None of above
-32768 to 32767
Question 7
The size of int data type in c is?
1 byte
None of above
At least 2 bytes
At least 8 bytes
At least 4 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.