NEW
Font size
WorksheetsC Programming MCQ Quiz
Total questions: 15
Worksheet time: 8mins
How many times "ASOFTLAB" is get printed?
#include
Infinite times
11 times
0 times
10 times
In mathematics and computer programming, which is the correct order of mathematical operators?
Addition, Subtraction, Multiplication, Division
Division, Multiplication, Addition, Subtraction
Multiplication, Addition, Division, Subtraction
Addition, Division, Modulus, Subtraction
What is the output of the following C program?
#include
2
4
8
16
What is the output of the following program?
#include
- \
- "
- "
- Compile error
Compiler generates ___ file.
- Executable code
- Object code
- Assembly code
- None of the above.
The return keyword used to transfer control from a function back to the calling function.
- Yes
- Switch
- go back
- goto
What is the output of the following code snippet?
#include
- 5
- 6
- Runtime error
- Compile error
What is the output of the below code snippet?
#include
- a=5, b=3
- a=5, b=3, c=0
- a=5, b=3, 0
- compile error
What is the output of the following code snippet?
#include
- HelloHi
- Hi
- Hello
- Compiler error
What is the output of the following program?
#include
- No output
- Error, as the function is not called.
- Error, as the function is defined without its declaration
-Error, as the main() function is left empty
What will be the output of the following code?
#include
2
5
3
Error
What will be the output of this code?
#include
1
2
3
Error
What will be the output of this code?
#include
Hello
H
Error
hello
What will be the output?
#include
10
0
Error
Garbage value
What will be the output?
#include
2 3 2 3
2 3 3 4
1 2 1 2
Error
