C-Extended

Quiz
•
Computers
•
University
•
Hard
Niranjan C
Used 13+ times
FREE Resource
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;
}
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;
}
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;
}
Welcome Programmer
Error: Undeclared identifier if
Error: Expression syntax
No output
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
PSC ALM QUIZ

Quiz
•
University
12 questions
C Basics

Quiz
•
University
16 questions
A "C" Event-the backbone of modern coding.

Quiz
•
University
12 questions
OS with C programming

Quiz
•
University
20 questions
C-QUEST QUIZ BEE

Quiz
•
University
20 questions
POP1_CS1

Quiz
•
University
20 questions
AlgoProg - Review Quiz

Quiz
•
University
20 questions
EST102 : PROGRAMMING IN C TEST 1

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University