C Programming MCQ type Online Test
C Programming Online test, Duration: 80 Mins.
1 / 40
Which of the following is a logical AND operator?
2 / 40
What is short int in C programming?
3 / 40
Property which allows to produce different executable for different platforms in C is called?
4 / 40
What will be the output of the following C code?
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
5 / 40
Which operator can be used for accessing the value stored at address of a pointer variable?
6 / 40
Which of the following is not an operator in C?
7 / 40
The C-preprocessors are specified with _________symbol.
8 / 40
What is the result of logical or relational expression in C?
9 / 40
Which of the following is true about C Programming?
10 / 40
Where in C the order of precedence of operators do not exist?
11 / 40
Who is the father of C language?
12 / 40
Functions in C Language are always _________
13 / 40
What is the output of below program?
int chk (int, int);
x = check(10, 20);
int check(int a, int b)
int *y, *z;
a>=45 ? return(*y): return(*z);
14 / 40
scanf() is a predefined function in______header file.
15 / 40
Which of the following cannot be a variable name in C?
16 / 40
Functions can return enumeration constants in C?
17 / 40
The C compiler used for UNIX operating system is
18 / 40
Which of following is not accepted in C?
19 / 40
What is #include <stdio.h>?
20 / 40
Single line comment in C language begins with _______
21 / 40
What will be the final value of x in the following C code?
int x = 5 * 9 / 3 + 9;
22 / 40
Will the following C code compile without any error?
for (int k = 0; k < 10; k++);
23 / 40
Which of the following are C preprocessors?
24 / 40
When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?
25 / 40
How many number of pointer (*) does C have against a pointer variable declaration?
26 / 40
Which of the following declaration is not supported by C language?
27 / 40
Which of the following is true for variable names in C?
28 / 40
In a library of C programming language, which of the following header file is used for performing mathematical operations?
29 / 40
Which of the following return-type cannot be used for a function in C?
30 / 40
All keywords in C are in ____________
31 / 40
What is the sizeof(char) in a 32-bit C compiler?
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
What is an example of iteration in C?
34 / 40
Which keyword is used to prevent any changes in the variable within a C program?
35 / 40
C preprocessors can have compiler specific features.
36 / 40
Which of the following statement is used to free the allocated memory space for a program?
37 / 40
The statement used for printing \n on the screen is:
38 / 40
39 / 40
Which header file is used to define input/output functions, macros and prototypes?
40 / 40
. Which of the following is not a valid C variable name?
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.