Ch3

Ch3

University

6 Qs

quiz-placeholder

Similar activities

Python Quiz 5

Python Quiz 5

University

10 Qs

Python - Functions

Python - Functions

University

10 Qs

Python Quiz

Python Quiz

University

10 Qs

Python Conditional Statements

Python Conditional Statements

University

8 Qs

Objects, Variables and Data Types

Objects, Variables and Data Types

University

10 Qs

Pengenalan Pemrograman - Semester 1

Pengenalan Pemrograman - Semester 1

University

10 Qs

Conditional and Iterative Statements

Conditional and Iterative Statements

University

10 Qs

Functions in Python

Functions in Python

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'