C Programming For Loop Review cf

C Programming For Loop Review cf

10th Grade - University

8 Qs

quiz-placeholder

Similar activities

แบบทดสอบก่อนเรียน บทที่ 1 ตุ๊กตาแม่ลูก

แบบทดสอบก่อนเรียน บทที่ 1 ตุ๊กตาแม่ลูก

11th Grade

10 Qs

scratch

scratch

11th - 12th Grade

10 Qs

Clase de Computación: Excel

Clase de Computación: Excel

11th Grade

12 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Test on Python Function

Test on Python Function

11th - 12th Grade

12 Qs

10 câu kiểu xâu tiết 1

10 câu kiểu xâu tiết 1

11th Grade

10 Qs

Cuestionario Steve Jobs

Cuestionario Steve Jobs

12th Grade - University

10 Qs

Website Usability and UX

Website Usability and UX

University

10 Qs

C Programming For Loop Review cf

C Programming For Loop Review cf

Assessment

Quiz

Computers

10th Grade - University

Practice Problem

Medium

Created by

Curtis Forbes

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times will the message be printed in the loop?

for(i = 0; i< 10; i++)

printf("Today is Saturday"

0

9

10

11

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What was omitted from the following line of code?


scanf("%f", cost);

printf

%d

&

#

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

State the error in the code fragment

char[15];

printf("Enter a name");

scanf("%d", &name);

&

char

[15]

%d

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times will the message be printed?

for(j=0; j<=10; j++)

printf("Happy birthday");

0

9

10

11

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output from the code fragment?

for(j=3; j>0; j--)

printf("%d", j);

1 2 3

0 1 2 3

3 2 1

3 2 1 0

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will the following code print?

for(k = 2; k<=10 ; k = k+2)

printf("%d", k);

1 2 3 4 5 6 7 8 9 10

2 4 6 8 10

10 8 6 4 2

2 4 6 8

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

For loop are used for bounded iteration

true

false

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?