Guess the output of following C code
int x=10;
printf(x);
Round1
Quiz
•
Engineering
•
University
•
Medium
Pavan Reddy
Used 11+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Guess the output of following C code
int x=10;
printf(x);
10
x
no output
compile error
2.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What will be the output of the following C code?
int a=5, b=10;
printf("%d", a+b);
15
510
5+10
compile error
3.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Identify the output of this C code snippet:
char c='A';
printf("%c", c+1);
B
A
compile error
no output
4.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What will be printed by the following C code?
float f=3.14;
printf("%.1f", f);
3.1
3.14
3.140
compile error
5.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Which of the following is a valid data type in C?
String
char
boolean
list
6.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What does the if statement do in C?
Executes a block of code repeatedly
Executes a block of code only if a specified condition is true
Exits a loop
Declares a function
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
What is the output of print(10 // 3) in Python?
3.33
3
3.0
4
25 questions
CUDA C/C++ Basics Quiz
Quiz
•
University
30 questions
FT-1
Quiz
•
University
20 questions
Quiz Round For Group 1
Quiz
•
University
24 questions
C Programming Lab Quiz 1
Quiz
•
University
20 questions
C Programming Quiz - 1
Quiz
•
University
30 questions
ByteBattle 2.0(3)
Quiz
•
University
20 questions
Code Sprint '25
Quiz
•
University
20 questions
C Programming Challenge for Students
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