Variable Declaration and Strings Quiz

Variable Declaration and Strings Quiz

11th Grade

10 Qs

quiz-placeholder

Similar activities

ચાલો.....રમતા રમતા શિખીએ

ચાલો.....રમતા રમતા શિખીએ

5th - 12th Grade

15 Qs

BGS Music Quiz

BGS Music Quiz

1st - 12th Grade

10 Qs

rubiks cube quiz

rubiks cube quiz

KG - Professional Development

13 Qs

Trójkąty i pitagoras

Trójkąty i pitagoras

10th - 12th Grade

10 Qs

General Knowledge (TEST)

General Knowledge (TEST)

KG - 12th Grade

10 Qs

Trial - Quiz Bowl HS

Trial - Quiz Bowl HS

10th - 12th Grade

10 Qs

SANDI A=N & SANDI A=Z

SANDI A=N & SANDI A=Z

1st - 12th Grade

10 Qs

Cohesive Device

Cohesive Device

11th Grade

15 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

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?