Python Variable  Quiz

Python Variable Quiz

12th Grade

34 Qs

quiz-placeholder

Similar activities

1.1.1. Structure and function of the processor

1.1.1. Structure and function of the processor

12th Grade

34 Qs

ÔN TẬP CUỐI HK2 TIN HỌC 6 24-25

ÔN TẬP CUỐI HK2 TIN HỌC 6 24-25

6th Grade - University

30 Qs

Máquinas y Mecanismos Quiz

Máquinas y Mecanismos Quiz

7th Grade - University

29 Qs

Pengenalan Firewall AIJ XII TKJ

Pengenalan Firewall AIJ XII TKJ

1st Grade - University

30 Qs

Python

Python

KG - Professional Development

35 Qs

Chủ đề Fict(bài 9,10,11)

Chủ đề Fict(bài 9,10,11)

12th Grade

35 Qs

Computer Pretest(Arduino)

Computer Pretest(Arduino)

12th Grade

33 Qs

Domain 1.0 (DD1)

Domain 1.0 (DD1)

9th - 12th Grade

39 Qs

Python Variable  Quiz

Python Variable Quiz

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Amy Austin

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

34 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a rule for naming variables in Python?

A variable name must start with a number.

A variable name can include special characters like @, #, $.

Variable names are not case-sensitive.

A variable name must start with a letter or the underscore character.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a legal variable name in Python?

2myvar = "John"

my-var = "John"

my@var = "John"

my_var = "John"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why can't the variable name 'Age' and 'age' be used interchangeably in Python?

Because variable names in Python can start with a capital letter only.

Because variable names in Python are not case-sensitive.

Because variable names in Python are case-sensitive.

Because 'Age' is a Python keyword.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not allowed in Python variable names?

Using alpha-numeric characters and underscores.

Starting the variable name with an underscore.

Using Python keywords as variable names.

Mixing uppercase and lowercase letters in variable names.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term used to describe a variable naming convention where each word, except the first, starts with a capital letter?

Snake Case

Kebab Case

Camel Case

Pascal Case

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Camel Case, how is the variable 'myVariableName' formatted?

Each word, including the first, starts with a capital letter.

Only the first word starts with a capital letter.

Each word, except the first, starts with a capital letter.

All letters are lowercase.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term used to describe a variable naming convention where each word starts with a capital letter?

Camel Case

Snake Case

Kebab Case

Pascal Case

Create a free account and access millions of resources

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?