Software 3

Software 3

University

9 Qs

quiz-placeholder

Similar activities

Python Lists and Tuples

Python Lists and Tuples

University

11 Qs

Python-Matrix-Reloaded-Workshop

Python-Matrix-Reloaded-Workshop

University

10 Qs

python String and comment

python String and comment

3rd Grade - University

13 Qs

Python L1

Python L1

8th Grade - University

14 Qs

Python Basics

Python Basics

University

10 Qs

Python Programming Basics

Python Programming Basics

University

14 Qs

python quiz

python quiz

6th Grade - Professional Development

10 Qs

Python-Variables, Expressions

Python-Variables, Expressions

University

12 Qs

Software 3

Software 3

Assessment

Quiz

Science, Computers, Other

University

Hard

Created by

Ronnie Bruno

Used 16+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, a variable must be declared before it is assigned a value:

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements assigns the value 100 to the variable x in Python:

x ← 100

let x = 100

x := 100

x = 100

x << 100

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Choose the valid Python variable names:

route66

ver1.3

4square

home_address

Age

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the code?

25

15

Error

None

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What does the following code print

nothing

usa

colombia

ireland

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the code print

ice cream is tasty!

Nothing

8.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is an invalid variable? *

_var_

1var

_var_1

All the above

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an invalid statement?

x_y_z = 1,000,000

x,y,z = 1, 2, 3

x y z = 1 2 3

num = 1,000,000