
C-Extended
Authored by Niranjan C
Computers
University
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
18 questions
Tin 8 - Câu lệnh điều kiện lệnh
Quiz
•
University
20 questions
Cloud Deployment
Quiz
•
University
15 questions
GDSC Intro Quiz
Quiz
•
University
13 questions
agu vize
Quiz
•
University
18 questions
Строка CMD
Quiz
•
University
20 questions
PERULANGAN WHILE DO
Quiz
•
University
15 questions
Javascript Array dan Object
Quiz
•
University
20 questions
Quiz on Java
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University