07 - Nested Structures

07 - Nested Structures

12th Grade

10 Qs

quiz-placeholder

Similar activities

AP Computer Science Principles

AP Computer Science Principles

9th - 12th Grade

14 Qs

Break the fear

Break the fear

11th - 12th Grade

10 Qs

L.5. PYTHON - VARIABLES AND OPERATORS - 1

L.5. PYTHON - VARIABLES AND OPERATORS - 1

12th Grade

10 Qs

AP Java 9-15-2023 (just functions1)

AP Java 9-15-2023 (just functions1)

9th - 12th Grade

10 Qs

Selection Quiz 2

Selection Quiz 2

12th Grade

15 Qs

You Be the Reader: Procedural Abstraction to Create Task

You Be the Reader: Procedural Abstraction to Create Task

12th Grade

6 Qs

Python Functions

Python Functions

12th Grade

15 Qs

Unit 4 Review

Unit 4 Review

9th - 12th Grade

6 Qs

07 - Nested Structures

07 - Nested Structures

Assessment

Quiz

Computers

12th Grade

Medium

Created by

A McKILLEN

Used 172+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num=13, what is the output of this program?

1 3 5 7 9 11 13

1 3 5 7 9 11

2 4 6 10 12

0 2 4 6 8 10 12

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num=27, what is the output of this program?

1 2 3 9 27

1 3 9 27

3 9

27 9 3 1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the function of the \r escape sequence?

newline

prints a horizontal tab character

carriage return

prints a backslash character

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num=42, for what value(s) of i is the statement print(“no”) in line number 5 is executed?

2

21

2, 3, 14, 21

1, 2, 3, 14, 21, 42

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num=39, what is the output of the program?

'no'

'yes'

'yes' then 'no'

'no' then 'no'

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num1 = 4 and num2 = 18, what will be output?

4

18

36

40

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If num1 = 6 and num2 = 8, what will be output?

8

12

24

48

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?