cs1010e tutorial 3

cs1010e tutorial 3

University

5 Qs

quiz-placeholder

Similar activities

Understanding GST: Levy and Collection

Understanding GST: Levy and Collection

University

10 Qs

4 Building Blocks of Sound II

4 Building Blocks of Sound II

12th Grade - University

7 Qs

GST Quiz - II

GST Quiz - II

University

10 Qs

Multimedia

Multimedia

University

10 Qs

SI-PART 2

SI-PART 2

University

10 Qs

LINEAR INTEGRATED CIRCUITS

LINEAR INTEGRATED CIRCUITS

University

3 Qs

Production Analysis

Production Analysis

University

8 Qs

מאזן נוזלים ואלקטרוליטים

מאזן נוזלים ואלקטרוליטים

University

8 Qs

cs1010e tutorial 3

cs1010e tutorial 3

Assessment

Quiz

Arts

University

Hard

Created by

Windsor Koh

Used 3+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the expected output when this code is run?

1

2

3

None of the above

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What is the expected output when this code is run?

cs1010e

cs10e10

Error

None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What should go in the blank to achieve the desired output?

i

foo

foo[i]

'abc'

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What code should go in the blank to achieve the desired output?

range(len(foo))

range(foo)

len(foo)

len(range(foo))

foo

5.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

Given this function, which of these statement(s) is/are true?

thisfunction('abc') returns True

thisfunction('abc') returns False

thisfunction('bc') returns True

thisfunction('bc') returns False