C Programming MCQ type Online Test
C Programming Online test, Duration: 80 Mins.
1 / 40
Which of the following is true for variable names in C?
2 / 40
What is the result of logical or relational expression in C?
3 / 40
What is an example of iteration in C?
4 / 40
The statement used for printing \n on the screen is:
5 / 40
All keywords in C are in ____________
6 / 40
Functions in C Language are always _________
7 / 40
C preprocessors can have compiler specific features.
8 / 40
Which header file is used to define input/output functions, macros and prototypes?
9 / 40
How many number of pointer (*) does C have against a pointer variable declaration?
10 / 40
What will be the final value of x in the following C code?
int x = 5 * 9 / 3 + 9;
11 / 40
Which of the following return-type cannot be used for a function in C?
12 / 40
Functions can return enumeration constants in C?
13 / 40
Will the following C code compile without any error?
for (int k = 0; k < 10; k++);
14 / 40
In a library of C programming language, which of the following header file is used for performing mathematical operations?
15 / 40
Single line comment in C language begins with _______
16 / 40
Which of the following statement is used to free the allocated memory space for a program?
17 / 40
What is the sizeof(char) in a 32-bit C compiler?
18 / 40
The C compiler used for UNIX operating system is
19 / 40
What is the output of below program?
20 / 40
The C-preprocessors are specified with _________symbol.
21 / 40
Which of following is not accepted in C?
22 / 40
Which of the following is a logical AND operator?
23 / 40
When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
24 / 40
. Which of the following is not a valid C variable name?
25 / 40
What will be the output of the following C code?
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
26 / 40
Which of the following is not an operator in C?
27 / 40
Which of the following are C preprocessors?
28 / 40
Property which allows to produce different executable for different platforms in C is called?
29 / 40
Where in C the order of precedence of operators do not exist?
30 / 40
What is #include <stdio.h>?
31 / 40
Who is the father of C language?
32 / 40
What will be the output of the following C code? (Initial values: x= 7, y = 8)
printf("enter two numbers \n", x);
scanf("%f %f", &x, &y);
printf("%f, %d", x, y);
33 / 40
scanf() is a predefined function in______header file.
34 / 40
Which operator can be used for accessing the value stored at address of a pointer variable?
35 / 40
Which of the following declaration is not supported by C language?
36 / 40
int chk (int, int);
x = check(10, 20);
int check(int a, int b)
int *y, *z;
a>=45 ? return(*y): return(*z);
37 / 40
What is short int in C programming?
38 / 40
Which of the following cannot be a variable name in C?
39 / 40
Which keyword is used to prevent any changes in the variable within a C program?
40 / 40
Which of the following is true about C Programming?
Your score is
Please rate this quiz
No. 4th Floor, Elcanso Apartments 9/10, Tamizh Salai, CASA Major Rd, Egmore, Chennai, Tamil Nadu 600008
+91- 86670 79822
Copyright © 2021. All rights reserved.
Already have an account? Login
Enter the username or e-mail you used in your profile. A password reset link will be sent to you by email.
Before you can login, you must active your account with the code sent to your email address.
If you did not receive this email, please check your junk/spam folder.
Click here to resend the activation email.
If you entered an incorrect email address, you will need to re-register with the correct email address.