M2.3: SAQ

M2.3: SAQ

University

19 Qs

quiz-placeholder

Similar activities

EC8071_CR_MODELEXAM-IV (08.12.2020)_PART-B

EC8071_CR_MODELEXAM-IV (08.12.2020)_PART-B

University

15 Qs

General Safety Talk 5 Juli 2023

General Safety Talk 5 Juli 2023

University

15 Qs

1st Long Quiz in Micro Tourism

1st Long Quiz in Micro Tourism

University

14 Qs

PPPK TAHAP 2 TEKNIS

PPPK TAHAP 2 TEKNIS

University

20 Qs

Pendidikan Bahasa Indonesia

Pendidikan Bahasa Indonesia

University

20 Qs

EXLP

EXLP

University

16 Qs

FNSINC612 Practice 3

FNSINC612 Practice 3

University

15 Qs

SYBBI Trial Quiz - Financial Statement Analysis

SYBBI Trial Quiz - Financial Statement Analysis

University

19 Qs

M2.3: SAQ

M2.3: SAQ

Assessment

Quiz

Other

University

Practice Problem

Easy

Created by

Parker Gaston

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The condition in an if statement may be a(n) _________ .

 Boolean variable

boolean expression

 Compound Boolean expression

 All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The statements inside an if must be indented using tabs.

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An if statement must always have an accompanying else.

 

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Another name for an if statement is a selection statement.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Python statement is used to simplify tail nesting code?

else

elif

 

if-else

 

tail

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is displayed by the following code?

a = 5

b = 6

c = 7

d = 8


if a <= 5:

  if b > 7:

    print(c)

  else:

    print(d)

else:

  if b < 7:

    print(2 * c)

  else:

    print(2 * d)

7

8

14

16

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

a = 3

b = 5

c = 7

d = 9


if a >= 5:

  if b > 7:

    print(c)

  else:

    print(d)

else:

  if b < 7:

    print(2 * c)

  else:

    print(2 * d)

7

8

14

16

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?