Find the output of given code:
main ()
{
const int z;
z=9;
print (z++);
}
CODE STORM
Quiz
•
Education
•
Professional Development
•
Hard
codemaker2023 codemaker2023
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of given code:
main ()
{
const int z;
z=9;
print (z++);
}
10
9
Compilation Error
No Output
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of given code:
main ()
{
const int x;
x=25;
print(x);
}
0
25
No output
Compilation Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of given code:
main ()
{
int i;
i=1;
print (++i, i++, ++i);
}
2 3 4
2 1 2
2 2 4
4 2 4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
main ()
{
print (4+”CodeMaker”);
}
Maker
CodeMaker
Error
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of given code:
main ()
{
int a[5]={1,2,3,4,5};
int i,j,m;
i=++a[2];
j=a[1]++;
m=a[i++];
print(i,j,m);
}
3 2 5
4 2 5
5 3 5
5 2 5
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
main ()
{
enum days{MON=-1,TUE,WED=6,THU,FRI,SAT};
print(++MON,TUE,WED,THU,FRI,SAT);
}
-1 0 1 2 3 4
0 1 6 3 4 5
0 0 6 7 8 9
Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of given code:
main ()
{
int i=4,j=8;
print (i|j&i|j, i|j&&i|j, i^j);
}
12 1 12
112 1 12
32 1 12
-64 1 12
20 questions
Meneroka AI
Quiz
•
Professional Development
25 questions
COCAT - DAA
Quiz
•
University - Professi...
20 questions
Testing Guild MNL 2021
Quiz
•
Professional Development
20 questions
C Programming Level 1
Quiz
•
Professional Development
15 questions
Quiz do kursu Arduino (poziom I)
Quiz
•
Professional Development
24 questions
Python Quiz 1
Quiz
•
Professional Development
20 questions
Array Based Quiz - Easy
Quiz
•
Professional Development
24 questions
Output based
Quiz
•
Professional Development
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade