Python Variables

Python Variables

University

15 Qs

quiz-placeholder

Similar activities

Pemkom 8

Pemkom 8

University

10 Qs

Python basic 2

Python basic 2

University

15 Qs

PAP Module-3 Part-2

PAP Module-3 Part-2

University

16 Qs

C-Py QUIZ | ROUND 1

C-Py QUIZ | ROUND 1

University

20 Qs

Python MCQ

Python MCQ

University

20 Qs

Python Lists and Tuples

Python Lists and Tuples

University

11 Qs

Python Programming

Python Programming

University

20 Qs

Get started with python

Get started with python

University

19 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?