Python Quiz 2

Python Quiz 2

University

5 Qs

quiz-placeholder

Similar activities

Python

Python

University

10 Qs

Python Basics

Python Basics

University

10 Qs

Python-1st

Python-1st

University

10 Qs

Python Quiz

Python Quiz

University

10 Qs

Python Basics

Python Basics

KG - University

10 Qs

03 - Python - Basics

03 - Python - Basics

University - Professional Development

10 Qs

Intro to Programming Quiz

Intro to Programming Quiz

University

10 Qs

Session 2

Session 2

University

10 Qs

Python Quiz 2

Python Quiz 2

Assessment

Quiz

Computers

University

Hard

Created by

Epshiba K

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is a variable in Python?

A constant value

A reserved keyword

A named container for storing data

A type of loop

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

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

2count

total_score

break

class

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is the purpose of the assignment operator (=) in Python?

To compare two values

To perform mathematical operations

To assign a value to a variable

To declare a variable

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which data type is used to represent a single character in Python?

a. char

b. string

c. character

d. str

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

x = 5

y = x + 2

print(y)

5

7

10

Error