What will be the output of the code?
#include

C Programming Coding Assessment

Quiz
•
Computers
•
1st Grade
•
Hard
Jeyam Jacqueline S
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Wayground
24 questions
C++ podstawowe pojęcia

Quiz
•
1st - 5th Grade
20 questions
แบบทดสอบกลางภาคpythonครูสมชาย

Quiz
•
1st - 3rd Grade
20 questions
UTS DASPRO

Quiz
•
1st - 10th Grade
20 questions
Trail Class Mechatronic

Quiz
•
1st - 6th Grade
29 questions
Arduino_Testing

Quiz
•
1st Grade
20 questions
Python Programming

Quiz
•
KG - University
20 questions
X-Tech Riot

Quiz
•
1st Grade
20 questions
quiz dasar python

Quiz
•
1st Grade - University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade