This C language Exam: Practice Quiz! Trivia assesses foundational C programming skills through practical questions. It covers array operations, loop mechanics, memory management, and basic arithmetic in C, offering learners a chance to sharpen their coding proficiency.
6
3
4
5
Rate this question:
Value of the array element
Subscript value
Address value
Size of an array
Rate this question:
11
10
12
9
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:
28
10
15
21
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:
Error message from the compiler
Possible system malfunction
Last element data may be overwritten
Nothing
Rate this question:
Ch = getch( );
Printf( “%c”, ch );
While(!kbhit)
Getkeyb ( ch );
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:
1 3 6 10 15 21 28 32 45 45
55
45
0
Rate this question:
4
5
Compiler dependent
3
Rate this question:
10
11
8
1
Rate this question:
0
Compiler dependent
1
-1
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:
Sizeof (datatype) * 2
Size of (datatype) * size of used array elements
Sizeof (datatype) * sizeof array
Size of (array) * datatype
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:
0
Run-time error
Undefined
Compilation error
Rate this question:
\“well done \”
Well done
“ well done”
\ well done \
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:
After main
After block
Before main
Within block
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:
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:
0
Cannot be predicted
1
2
Rate this question:
If-else
Goto
While
Switch-case
Rate this question:
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:
Progr
Prog
Program
Runtime error
Rate this question:
Four is Z
Three is Z
Compiler error
Two is Z
Rate this question:
Int and float
Extern
Both 1 & 2
Neither 1 nor 2
Rate this question:
The value of a is 2 The value of a is 2
The value of a is 2 The value of a is 3
The value of a is 1 The value of a is 10
Compiler error
Rate this question:
G
E
F
Compiler Error
Rate this question:
99
Compiler Error
Runtime Error
C
Rate this question:
1 2 3 4 5
It prints an infinite loop of numbers
1 2 3 4
1
Rate this question:
Ken Thompson
Dennis Ritchie
Peter Norton
Martin Richards
Rate this question:
Only MS-DOS
Only Linux
Only window
All of the above
Rate this question:
An editor
Compiler
An operating system
None of the above
Rate this question:
Fractional form only
Exponetial form only
ASCII form only
Both Fractional and Exponetial
Rate this question:
1 character
8 characters
254 characters
None of the above
Rate this question:
-32767
32767
1.7014e+38
-1.7014e+38
Rate this question:
An alphabet
A number
A special symbol other than underscore
Both (2) and (3)
Rate this question:
Quiz Review Timeline (Updated): Mar 21, 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.