Ch3

Ch3

University

6 Qs

quiz-placeholder

Similar activities

Java Control Flow statements

Java Control Flow statements

University

10 Qs

Python Sets

Python Sets

University

10 Qs

C Programming Quiz-5

C Programming Quiz-5

University

10 Qs

Python

Python

8th Grade - Professional Development

10 Qs

review of chapter 1

review of chapter 1

University

10 Qs

CC 04 - Quiz 1

CC 04 - Quiz 1

University

10 Qs

Python Basics

Python Basics

University

10 Qs

Python For

Python For

University

10 Qs

Ch3

Ch3

Assessment

Quiz

Computers

University

Hard

Created by

Norita Ahmad

Used 2+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In a Python program, a control structure:

Dictates what happens before the program starts and after it terminates.

Directs the order of execution of the statements in the program.

Manages the input and output of control characters.

Defines program-specific data structures.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one of the following if statements will not execute successfully:

Media Image
Media Image
Media Image
Media Image

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What signifies the end of a statement block or suite in Python?

A comment

A line that is indented less than the previous line

end

colon

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the code snippet:

1

2

4

4

1

2

3

4

It doesn't generate any output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

This if/elif/else statement will raise a KeyError exception

True

False

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the value of this expression:

'axb'

'axyb'

'ax'

'ab'