C language is the first language that most programmers get introduced to programming. The quiz below is a sample test to show you the questions you would expect to get in your papers come exam time. Give it a try and all the best as you continue on the programing journey.
External
Automatic
Register
Define
Rate this question:
# define pie = 22/7
#define pie 22/7
#define pie= 3.142
# Define pie 22/7
Rate this question:
0
Cannot be predicted
1
2
Rate this question:
More than one default allowesd
Default case, if used, should be the last case
Default case, if used, can be placed anywhere
Default case must be present
Rate this question:
2
3
Any number
1
Rate this question:
Cache
Memory
Processor registers
Virtual memory
Rate this question:
The initialization and increment parts of a for statement can be empty
The body of do-while statement can be empty
The expression in the condition part of a for statement can be empty
The initialization part of a for statement cannot have more than one initialization
Rate this question:
No
Unpredictable
Yes
Error
Rate this question:
After main
After block
Before main
Within block
Rate this question:
While loop is executed atleast once
Do . while loop is executed at least once
While loop is executed only if the condition is true
Dowhile loop is ececuted only if the condition is true
Rate this question:
\āwell done \ā
Well done
ā well doneā
\ well done \
Rate this question:
0
Run-time error
Undefined
Compilation error
Rate this question:
Dynamically identifies based on largest index used in program
Does not require to be specified
Assume default size as ā0ā
Requires to be specified
Rate this question:
A type and size
A type, name, value and size
A name and type
A size and value
Rate this question:
Defined
Neither initialized nor defined
Initialized and defined
Initialized
Rate this question:
6 bytes
24 bytes
12 bytes
48 bytes
Rate this question:
Loop construct
Two way decision
Multiway decision
One-way decision
Rate this question:
Sizeof (datatype) * 2
Size of (datatype) * size of used array elements
Sizeof (datatype) * sizeof array
Size of (array) * datatype
Rate this question:
None of the element are initialized to zero
Only first row elements are initialized to zero
Only last row elements are initialized to zero
All the array elements are initialized to zero
Rate this question:
For(a=āAā; a
For(a=āAā; a
For(a=āaā; a
For(a=āAā a
Rate this question:
Data type
Datatype and size
Run-time requirement
Size
Rate this question:
Character constant
A floating point number
0
An undetermined value
Rate this question:
Char array cannot be printed directly using printf
Array is not a left value and so cannot be assigned to
Program compiles without error, but prints an unpredictable value
Array cannot be initialized as above
Rate this question:
0
Compiler dependent
1
-1
Rate this question:
4
5
Compiler dependent
3
Rate this question:
10
11
8
1
Rate this question:
1 3 6 10 15 21 28 32 45 45
55
45
0
Rate this question:
This is syntactically wrong
The value of num[8] is 3
This is invalid if it comes within a function
The value of num[2] is 3
Rate this question:
āabcdā
āabcdā
Abcd
āabcdā
Rate this question:
Print the value of I as 1
Warning for no return type for main ( )
Infinite loop
Prints the value of I as11111
Rate this question:
Strcpy( str, āHelloā );
Strcat(str,āHelloā);
Printf( str, āHelloā );
Str = āHelloā;
Rate this question:
6
3
4
5
Rate this question:
Error message from the compiler
Possible system malfunction
Last element data may be overwritten
Nothing
Rate this question:
11
10
12
9
Rate this question:
Ch = getch( );
Printf( ā%cā, ch );
While(!kbhit)
Getkeyb ( ch );
Rate this question:
28
10
15
21
Rate this question:
Value of the array element
Subscript value
Address value
Size of an array
Rate this question:
Allocation of memory at debugging time
Allocation of memory at file saving time
Allocation of memory at compile time
Allocation of memory at runtime
Rate this question:
Progr
Prog
Program
Runtime error
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.