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