C-Extended
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Niranjan C
Used 13+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will this program print?
main()
{
int i = 2;
{
int i = 4, j = 5;
printf("%d %d", i, j);
}
printf("%d %d", i, j);
}
4525
2525
4545
None of the these
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
int x = 5;
int y = 3;
int z = x + y;
printf("%d", z);5
15
2
8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression?
int a = 10;
int b = 5;
int c = a * b + 2;
printf("%d", c);52
50
25
15
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value of 'num' after executing the following code?
int num = 7;
num += 3;
num *= 2;
printf("%d", num);20
25
15
10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times "javaTpoint" is printed?
#include<stdio.h>
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("javaTpoint");
}
return 0;
}
#include<stdio.h>
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("javaTpoint");
}
return 0;
}
0 times
12 times
11 times
Infinite times
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times while loop is executed if a short int is 2 byte wide?
#include<stdio.h>
int main()
{
int i=1;
while(i <= 155)
{
printf("%c %d\n", i, i);
i++;
}
return 0;
}
#include<stdio.h>
int main()
{
int i=1;
while(i <= 155)
{
printf("%c %d\n", i, i);
i++;
}
return 0;
}
154 times
155 times
156 times
Infinite times
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which statement is correct about the below program?
#include<stdio.h>
int main()
{
int i = 8, j = 24;
if(i = 8) && if(j = 24)
printf("Welcome Programmer");
return 0;
}
#include<stdio.h>
int main()
{
int i = 8, j = 24;
if(i = 8) && if(j = 24)
printf("Welcome Programmer");
return 0;
}
Welcome Programmer
Error: Undeclared identifier if
Error: Expression syntax
No output
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
Web Designing Quiz-1
Quiz
•
University
17 questions
Drones
Quiz
•
KG - Professional Dev...
20 questions
Latihan PSAS Kelas 9
Quiz
•
9th Grade - University
15 questions
Laravel-Manajemen-User
Quiz
•
University
18 questions
SAINS KOMPUTER TING 4 - 1.5 AMALAN TERBAIK PENGATURCARAAN
Quiz
•
12th Grade - University
20 questions
POO_BasicoyJava
Quiz
•
University
20 questions
Control Structures C#
Quiz
•
University
20 questions
TEKNOLOGI INFORMASI DAN KOMUNIKASI
Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
9 questions
Principles of the United States Constitution
Interactive video
•
University
18 questions
Realidades 2 2A reflexivos
Quiz
•
7th Grade - University
10 questions
Dichotomous Key
Quiz
•
KG - University
25 questions
Integer Operations
Quiz
•
KG - University
7 questions
What Is Narrative Writing?
Interactive video
•
4th Grade - University
20 questions
SER vs ESTAR
Quiz
•
7th Grade - University
