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

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

University

8 Qs

quiz-placeholder

Similar activities

COOKERY QUIZ

COOKERY QUIZ

11th Grade - University

10 Qs

17-绘图课前练习

17-绘图课前练习

University

10 Qs

Tutorium 3

Tutorium 3

University

9 Qs

ERP Implementation

ERP Implementation

University

10 Qs

How well do you know Thailand?

How well do you know Thailand?

University

10 Qs

Matter Matters!!! S1T2

Matter Matters!!! S1T2

12th Grade - University

10 Qs

JRDL - Intro to DOM

JRDL - Intro to DOM

6th Grade - Professional Development

12 Qs

Chocolate 🍫

Chocolate 🍫

4th Grade - Professional Development

12 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