What would be the output of the following code?
Turing's Test: CodeClash1.0

Quiz
•
Computers
•
•
Hard
Sumithra pm
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
25
11
Error
Garbage
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not defined on floating point on C?
&&
>
%
>=
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1.What is the result of the expression ((7 > 5) && (10 < 12)) || (15 == 20)?
not known
5
true
false
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5.What will be the value of result?
int x = 5, y = 10;
int result = (x > y) ? x : y;
5
10
true
false
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code snippet:
char str = "Hello, World!";
printf("%c\n", (str + 7));
What is the output?
o
,
W
Hello, W
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code ,what will be the output?
main(){
Printf("%d%d%d",sizeof(3.14f),sizeof(3.14),sizof(3.14l));
}
4 8 12
4 4 4
4 2 4
2 2 4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#define cube(x)(x*x*x)
main() {
int a,b=3;
a=cube(b++);
printf("%d%d",a,b); }
What will be the value of a,b?
60 6
60 4
60 3
3 4
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Test Final

Quiz
•
University
20 questions
Turing's Test :CodeClash 1.0(Batch 3)

Quiz
•
KG - University
19 questions
Technotsav'23

Quiz
•
University
16 questions
PSC ALM QUIZ

Quiz
•
University
20 questions
C-QUEST QUIZ BEE

Quiz
•
University
20 questions
Getting Started in C Programming

Quiz
•
9th - 10th Grade
15 questions
Coding club Summit Online Quiz

Quiz
•
University
20 questions
C - Strings

Quiz
•
University
Popular Resources on Quizizz
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
Discover more resources for Computers
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