Python Variables

Python Variables

University

15 Qs

quiz-placeholder

Similar activities

Code-O-Fiesta Round 1

Code-O-Fiesta Round 1

University

15 Qs

Python MCQ

Python MCQ

University

20 Qs

Python basic 2

Python basic 2

University

15 Qs

Computational Thinking in Python[Quiz 2]

Computational Thinking in Python[Quiz 2]

University

15 Qs

Q2 - Python

Q2 - Python

University

10 Qs

DATA STRUCTURES ACTIVITY OF THE WEEK

DATA STRUCTURES ACTIVITY OF THE WEEK

University

10 Qs

Python Quiz - 1

Python Quiz - 1

University

10 Qs

Python_IOSC

Python_IOSC

University

15 Qs

Python Variables

Python Variables

Assessment

Quiz

Computers

University

Hard

Created by

Lintang Wisesa

Used 7+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable?

A number or text that meaningful

A container for storing data values

A message input by the user

A printout that show answer that user entered

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to assign values to a variable?

=

:

>>>

==

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used in python to create a comment?

>>>

//

@

#

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Below are valid variable names in Python, except...

officeMail

SECRET_KEY

1stName

PhoneNumber

5.

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

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

var x = 100

x := 100

x = 100

x == 100

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following are valid Python variable names:

my_age

version1.3

homeAddress

return

4square

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?