
C Programming Coding Assessment
Authored by Jeyam Jacqueline S
Computers
1st Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the code?
#include
10
15
5
20
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times the while loop will get executed if a short int is 2 byte wide?
#include
Infinite times
255 times
256 times
254 times
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following errors would be reported by the compiler on compiling the program given below?
#include
There is no break statement in each case.
Expression as in case 3 + 2 is not allowed.
Duplicate case case 5:
No error will be reported.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Point out the error, if any in the program.
#include
Error: No default value is specified
Error: Constant expression required at line case P:
Error: There is no break statement in each case.
No error will be reported.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the program?
#include
3, 4
4, 3
4, 4
Output may vary from compiler to compiler
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many times the program will print "SMTEC" ?
#include
Infinite times
32767 times
65535 times
Till stack overflows
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the program?
#include
25
11
Error
Garbage value
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?