Variable Declaration and Strings Quiz

Variable Declaration and Strings Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

Language Features of Poem

Language Features of Poem

11th Grade

10 Qs

Disney Personalities

Disney Personalities

5th Grade - University

15 Qs

Phép vị tự

Phép vị tự

11th Grade

10 Qs

SciVis I Unit 6 B

SciVis I Unit 6 B

9th - 12th Grade

15 Qs

Thickening Agents and Methods

Thickening Agents and Methods

11th - 12th Grade

10 Qs

Football Quiz

Football Quiz

KG - Professional Development

15 Qs

Exoictic cars.

Exoictic cars.

5th Grade - Professional Development

10 Qs

Ohio Valley College of Technology

Ohio Valley College of Technology

KG - University

10 Qs

Variable Declaration and Strings Quiz

Variable Declaration and Strings Quiz

Assessment

Quiz

Other

11th Grade

Practice Problem

Hard

Created by

Ambrose Koroma

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in Python?

Use the keyword 'var' to declare a variable in Python.

Use the keyword 'let' to declare a variable in Python.

Use the assignment operator (=) to declare a variable in Python.

Use the keyword 'const' to declare a variable in Python.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

my-variable

my_variable

my variable

myVariable

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the variable 'x' in the statement: x = 5.7?

float

boolean

string

integer

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? x = 10 y = 5 print(x + y)

50

105

15

3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? x = 'Hello' y = 'World' print(x + y)

HelloWorld

Hello + World

Hello, World

Hello World

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to concatenate two strings in Python?

+

&

-

*

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? x = '5' y = 3 print(x * y)

15

53

5555

555

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?