Find the Output- Conditional statements and Loop Structure

Find the Output- Conditional statements and Loop Structure

University

40 Qs

quiz-placeholder

Similar activities

GIS Revision Unit I & II

GIS Revision Unit I & II

University

45 Qs

KHỐI 3 HKII

KHỐI 3 HKII

3rd Grade - University

38 Qs

Part 1 CAD:PRELIMENARY EXAMINATION

Part 1 CAD:PRELIMENARY EXAMINATION

University

45 Qs

Python

Python

KG - Professional Development

35 Qs

IOT_SARS

IOT_SARS

University

40 Qs

Sumatif Akhir Semester TIK Kelas VIII

Sumatif Akhir Semester TIK Kelas VIII

8th Grade - University

35 Qs

Ulangan Komputer Akuntansi 3

Ulangan Komputer Akuntansi 3

12th Grade - University

40 Qs

Linear Data Structures Quiz

Linear Data Structures Quiz

University

40 Qs

Find the Output- Conditional statements and Loop Structure

Find the Output- Conditional statements and Loop Structure

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Aakanksha Chopra

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

}

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?