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

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

University

8 Qs

quiz-placeholder

Similar activities

Python02

Python02

University

12 Qs

Mobile Commerce P11

Mobile Commerce P11

University

10 Qs

The Masked Singer

The Masked Singer

5th Grade - Professional Development

13 Qs

NPI QUIZ WEEK 1 November

NPI QUIZ WEEK 1 November

University

10 Qs

Final recap STM3423

Final recap STM3423

University

11 Qs

INFERENCES and CONCLUSIONS

INFERENCES and CONCLUSIONS

9th Grade - University

11 Qs

Netflix

Netflix

KG - Professional Development

10 Qs

Cùng Gen G sống Xanh đi - Gen G Unitour 2023

Cùng Gen G sống Xanh đi - Gen G Unitour 2023

University

8 Qs

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

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

Assessment

Quiz

Computers, Other

University

Practice Problem

Hard

Created by

Alison K

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...

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'

Access all questions and much more by creating a free account

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?

Discover more resources for Computers