Find the Output- Conditional statements and Loop Structure

Find the Output- Conditional statements and Loop Structure

University

40 Qs

quiz-placeholder

Similar activities

Loop Control Statement in C

Loop Control Statement in C

University

41 Qs

CodeChef (Secret Snippet)

CodeChef (Secret Snippet)

University

35 Qs

Java Programming

Java Programming

University

40 Qs

C pro test

C pro test

8th Grade - Professional Development

35 Qs

TECHQUEST 2025

TECHQUEST 2025

University

42 Qs

Technical MCQ

Technical MCQ

University

45 Qs

Test Algoritma

Test Algoritma

University

40 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

University

35 Qs

Find the Output- Conditional statements and Loop Structure

Find the Output- Conditional statements and Loop Structure

Assessment

Quiz

Computers

University

Hard

Created by

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);

}

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?