Tutorial 3: Strings, variables, if-else, while loops

Tutorial 3: Strings, variables, if-else, while loops

University

8 Qs

quiz-placeholder

Similar activities

GDLC : Summer Trivia

GDLC : Summer Trivia

KG - University

10 Qs

Food king

Food king

KG - Professional Development

7 Qs

QLPython

QLPython

University

10 Qs

Faridah Quizz

Faridah Quizz

KG - Professional Development

10 Qs

Stranger Things

Stranger Things

3rd Grade - Professional Development

8 Qs

Peer Teaching I

Peer Teaching I

University

12 Qs

All About Me

All About Me

KG - Professional Development

7 Qs

My Favorite Things

My Favorite Things

3rd Grade - Professional Development

11 Qs

Tutorial 3: Strings, variables, if-else, while loops

Tutorial 3: Strings, variables, if-else, while loops

Assessment

Quiz

Computers, Other

University

Hard

Created by

Alison K

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Which of the following is the correct way to assign a value to a variable?

var == 848

var = 848

def var = 848

var is 848

2.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Media Image

What will be returned on the console?

sent, 'vanilla'

'My favorite ice cream flavor isvanilla'

'My favorite ice cream flavor is vanilla'

'My favorite ice cream flavor is' 'vanilla'

3.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Media Image

What will be returned on the console?

'sent' 'vanilla'

'My favorite ice cream flavor isvanilla'

'My favorite ice cream flavor is vanilla'

'My favorite ice cream flavor is' 'vanilla'

4.

MULTIPLE SELECT QUESTION

20 sec • 10 pts

print(tools[-4:])

print(tools[10:])

print(tools[10:13])

print(tools[10:14])

5.

MULTIPLE SELECT QUESTION

20 sec • 5 pts

len(tutor2) > len(tutor3)

len(tutor2) == len(tutor3)

tutor1[1] == tutor2[1]

tutor1[-1] == tutor2[5]

6.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

14 apples

'14 apples'

14 'apples'

'10 4 apples'

None of the above

7.

MULTIPLE CHOICE QUESTION

20 sec • 10 pts

Media Image

What will be returned on the console?

'The weather today is nice'

'The weather today is bearable'

'The weather today is sad'

8.

MULTIPLE CHOICE QUESTION

10 sec • 10 pts

Media Image

How many print statements will be executed before the program stops?

1

3

4

5