What will be the output of the following C code?
#include <stdio.h>
void main()
{ int x = 5;
if (true);
printf("hello");
}
sample qizz
Quiz
•
Computers
•
University
•
Hard
Jancy Thomas
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{ int x = 5;
if (true);
printf("hello");
}
a) It will display hello
b) It will throw an error
c) Nothing will be displayed
d) Compiler dependent
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include <stdio.h>
int x;
void main()
{
if (x)
printf("hi");
else
printf("how are u");
}
a) hi
b) how are you
c) compile time error
d) error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code snippet?
int number = 25;
if (number >= 20)
System.out.print("Above ");
else
System.out.print("Below ");
System.out.println("the threshold.");
Above
Below.
. Above the threshold
Below the threshold.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
identify the person
none of the above
5.
OPEN ENDED QUESTION
3 mins • 1 pt
what is quizziz
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
3 mins • 1 pt
what is quizziz
Evaluate responses using AI:
OFF
10 questions
unidad4
Quiz
•
University
6 questions
Unit 12 : error no
Quiz
•
University
5 questions
Sharda university uzbek
Quiz
•
University
10 questions
C Program Array and strings
Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)
Quiz
•
University
10 questions
pointers and structures
Quiz
•
University
10 questions
ECE-C Quiz _3
Quiz
•
University
10 questions
C Viva
Quiz
•
University
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