C Programming For Loop Review cf

C Programming For Loop Review cf

10th Grade - University

8 Qs

quiz-placeholder

Similar activities

FLASH

FLASH

University

10 Qs

IPC144 -- Midterm Review

IPC144 -- Midterm Review

University

9 Qs

c basic

c basic

University

10 Qs

FIVIZZ: WEEK 11 - PROGRAMMING 2

FIVIZZ: WEEK 11 - PROGRAMMING 2

University

10 Qs

for dan if bahasa C

for dan if bahasa C

11th Grade

12 Qs

FIND THE KEY

FIND THE KEY

University

10 Qs

Middle Row & Top Row Keys

Middle Row & Top Row Keys

6th - 12th Grade

13 Qs

Analysis of Algorithms

Analysis of Algorithms

University

10 Qs

C Programming For Loop Review cf

C Programming For Loop Review cf

Assessment

Quiz

Computers

10th Grade - University

Medium

Created by

Curtis Forbes

Used 3+ times

FREE Resource

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

8.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How many times will goodbye be printed?

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

printf("%d", k);

print("goodbye");

0

1

9

10