What will be the output of the following code?
#include <stdio.h>
int main()
{ int x = 10, y = 20, z;
z = x + y * 2;
printf("%d\n", z);
return 0;
}
Sharda university uzbek
Quiz
•
Computers
•
University
•
Hard
Ramkumar Professor)
Used 6+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include <stdio.h>
int main()
{ int x = 10, y = 20, z;
z = x + y * 2;
printf("%d\n", z);
return 0;
}
50
60
70
80
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include <stdio.h>
int main() {
int x = 5, y = 2;
printf("%d\n", x / y);
return 0;
}
2
2.5
2.0
error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
#include <stdio.h>
int main() {
int x = 5, y = 2;
printf("%d\n", x % y);
return 0;
}
2
2.5
1
error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the 16-bit compiler allowable range for integer constants?
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following comment is correct when a macro definition includes arguments?
The opening parenthesis should immediately follow the macro name.
There should be at least one blank between the macro name and the opening parenthesis.
There should be only one blank between the macro name and the opening parenthesis.
There should be only one blank between the macro name and the opening parenthesis.
10 questions
C Programming - Basics 001
Quiz
•
University
10 questions
Array in C
Quiz
•
University
9 questions
IPC144 SLG -- Week2
Quiz
•
University
10 questions
Basics of C
Quiz
•
University
10 questions
C Programming Quiz-1
Quiz
•
University
10 questions
Pengantar Coding
Quiz
•
University
8 questions
Unit 3 C Pro P1
Quiz
•
University
10 questions
Expression in C Programming
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