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