This quiz, titled 'PGDCA Second Semester Exam 2019 13\/09\/2019', assesses knowledge in C programming, focusing on control structures such as loops and conditional statements. It evaluates understanding of loop constructs, storage classes, symbolic constants, and the functionality of switch and do. . . While statements.
‘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:
11
10
12
9
Rate this question:
99
Compiler Error
Runtime Error
C
Rate this question:
2
3
Any number
1
Rate this question:
A type and size
A type, name, value and size
A name and type
A size and value
Rate this question:
28
10
15
21
Rate this question:
After main
After block
Before main
Within block
Rate this question:
\“well done \”
Well done
“ well done”
\ well done \
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:
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:
1 2 3 4 5
It prints an infinite loop of numbers
1 2 3 4
1
Rate this question:
Cache
Memory
Processor registers
Virtual memory
Rate this question:
Progr
Prog
Program
Runtime error
Rate this question:
Successful
Compiler error
Compiler warning
None of these
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:
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:
6 bytes
24 bytes
12 bytes
48 bytes
Rate this question:
0
Compiler dependent
1
-1
Rate this question:
6
3
4
5
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:
For(a=‘A’; a
For(a=‘A’; a
For(a=‘a’; a
For(a=’A’ a
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:
Four is Z
Three is Z
Compiler error
Two is Z
Rate this question:
G
E
F
Compiler Error
Rate this question:
Mutable
Volatile
Static
None of these
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:
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:
1 3 6 10 15 21 28 32 45 45
55
45
0
Rate this question:
If-else
Goto
While
Switch-case
Rate this question:
0
Cannot be predicted
1
2
Rate this question:
Defined
Neither initialized nor defined
Initialized and defined
Initialized
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:
# define pie = 22/7
#define pie 22/7
#define pie= 3.142
# Define pie 22/7
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:
Strcpy( str, “Hello” );
Strcat(str,“Hello”);
Printf( str, “Hello” );
Str = “Hello”;
Rate this question:
0
Run-time error
Undefined
Compilation error
Rate this question:
Main(int argc, char argv)
Main(char argv[ ], int *argc)
Main(char* argv[ ],int argc)
Main(int argc,char* argv[ ])
Rate this question:
4
5
Compiler dependent
3
Rate this question:
Value of the array element
Subscript value
Address value
Size of an array
Rate this question:
Loop construct
Two way decision
Multiway decision
One-way decision
Rate this question:
External
Automatic
Register
Define
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:
Data type
Datatype and size
Run-time requirement
Size
Rate this question:
It will print "you are in fun" endlessly
Infinite loop
It is an example of tree recursion
Stack overflow
Rate this question:
Quiz Review Timeline (Updated): Apr 25, 2024 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
C Programming 1 Quiz-Lecture
This C Programming 1 Quiz-Lecture explores fundamental computer concepts. It assesses knowledge on hardware, software, memory systems, and input devices, crucial for understanding...
Questions:
20 |
Attempts:
284 |
Last updated:
Mar 21, 2023
|
C Language MCQ Exam Trivia! Quiz
Dive into the intricacies of C programming with this engaging MCQ Exam Trivia! Quiz. Test your knowledge on variable declarations, operators, pointers, and data types. Perfect for...
Questions:
15 |
Attempts:
361 |
Last updated:
Mar 21, 2023
|
C Programming Quiz: Practice Exam!
This C Programming Quiz: Practice Exam tests understanding of C syntax and functions, assessing skills through code snippets and problem-solving scenarios. Ideal for learners...
Questions:
50 |
Attempts:
401 |
Last updated:
Mar 21, 2023
|
Copy Of C Quiz
This 'Copy of C Quiz' assesses knowledge in C programming, covering fundamentals like language history, syntax, and loop behaviors. It tests understanding of variable usage,...
Questions:
10 |
Attempts:
170 |
Last updated:
Mar 18, 2023
|
Decode The Code By ISTE(Indian Society For Technical Education)
The 'Decode The Code by ISTE' quiz tests proficiency in C programming with questions on code outputs, memory management, and recursive functions. It assesses critical thinking and...
Questions:
15 |
Attempts:
343 |
Last updated:
Mar 30, 2023
|
Programming For Problem Solving
This quiz titled 'Programming for Problem Solving' assesses knowledge in C programming, focusing on understanding functions, recursion, and program structure. It is designed for...
Questions:
30 |
Attempts:
832 |
Last updated:
Mar 22, 2023
|
Wait!
Here's an interesting quiz for you.