Quiz 4 Week 6 Repetition Structures (For)

Quiz 4 Week 6 Repetition Structures (For)

University

15 Qs

quiz-placeholder

Similar activities

Weekly Contest #6 - TechXNinjas

Weekly Contest #6 - TechXNinjas

University

10 Qs

C-Extended

C-Extended

University

16 Qs

Round 2 Debug-The-Code

Round 2 Debug-The-Code

University

15 Qs

Arithmetic Types Declare Initialize Relation Logical Ops

Arithmetic Types Declare Initialize Relation Logical Ops

9th Grade - University

16 Qs

Quiz - Control Structure in C programming

Quiz - Control Structure in C programming

University

15 Qs

[AP CSP] FOR & WHILE LOOPS

[AP CSP] FOR & WHILE LOOPS

9th Grade - University

20 Qs

JavaScript Arrays Quiz

JavaScript Arrays Quiz

11th Grade - University

20 Qs

Python-loops, branches, functions

Python-loops, branches, functions

University

15 Qs

Quiz 4 Week 6 Repetition Structures (For)

Quiz 4 Week 6 Repetition Structures (For)

Assessment

Quiz

Computers

University

Hard

Created by

Parkpoom TA

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 What is a result of the following program?

Your item is 5

Your item is 5

Your item is 5

Your item is 5

Your item is 4

Your item is 3

Your item is 5

Your item is 5

Your item is 3

Your item is 4

Your item is 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Which line of code define an incremental of the index?

2

4

6

1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 Insert code at line 5 to make this program run as follows.

num = -1

num -= 1

num += 1

num = 1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Insert code at line 3 to make this program run as the output.

if num % 2 == 1:

if num / 2 == 0:

if num % 2 == 0:

if num == 0:

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

 How many lines will be printed in this program?

50 Lines

20 Lines

Infinite Line

Error!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many lines will be printed in this program?

Error!

1 Line

10 Lines

Infinitely running loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

1

5 4 3 2 1

1 2 3 4 5

None of the above

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?

Discover more resources for Computers