Q1. What would be the output of the following program:
void main()
{
int a= 300, b, c;
if(a>=400)
b=300;
c=200;
printf(“ \n %d %d ” , b ,c);
}
Find the Output- Conditional statements and Loop Structure
Quiz
•
Computers
•
University
•
Hard
Aakanksha Chopra
Used 6+ times
FREE Resource
40 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
Q1. What would be the output of the following program:
void main()
{
int a= 300, b, c;
if(a>=400)
b=300;
c=200;
printf(“ \n %d %d ” , b ,c);
}
2.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
What would be the output of the following programs-
void main()
{
int a= 500, b, c;
if(a>=400)
b= 300;
c=200;
printf(“ \n %d %d ” ,b ,c);
}
3.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=10, y=20;
if(x==y);
printf(“ \n %d %d” ,x ,y);
}
4.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3, y=5;
if(x==3)
printf(“ \n %d” ,x);
else
printf(“ \n %d” ,y);
}
5.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3;
float y=3.0;
if(x==y)
printf(“ \n x and y are equal”);
else
printf(“ \n x and y are not equal”);
}
6.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int x=3, y, z;
y=x=10;
z=x<10;
printf(“ \n x = %d y = %d z = %d” ,x ,y, z); }
7.
FILL IN THE BLANK QUESTION
5 mins • 1 pt
void main()
{
int k=35;
printf(“ \n %d %d %d”, k = =35, k= 50, k>40);
}
44 questions
Round 1 Code2duo
Quiz
•
University
40 questions
A4ALGU CLUB EVENT QUIZ
Quiz
•
University
40 questions
IOT_SARS
Quiz
•
University
45 questions
TECHNICAL QUIZ
Quiz
•
University
35 questions
Kuis 2
Quiz
•
University
40 questions
C++ Basics
Quiz
•
University
40 questions
Coding Skill Test -I
Quiz
•
University
40 questions
Quizz PTS Kelas XI Struktur Data Array
Quiz
•
11th Grade - University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade