Workshop 2 Review

Workshop 2 Review

University

10 Qs

quiz-placeholder

Similar activities

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

PROGRAMMING IN PYTHON - UNIT II - TEST 1 MCQS

University

15 Qs

Python Basics

Python Basics

KG - University

15 Qs

G7B_Quiz1_2T

G7B_Quiz1_2T

University

15 Qs

codestorm

codestorm

University

10 Qs

Grade 8 End of Unit Revision

Grade 8 End of Unit Revision

8th Grade - University

15 Qs

Python Conditionals and If Statements

Python Conditionals and If Statements

8th Grade - University

15 Qs

Exam 1 Practice

Exam 1 Practice

University

15 Qs

Python Basics

Python Basics

University

10 Qs

Workshop 2 Review

Workshop 2 Review

Assessment

Quiz

Computers

University

Medium

Created by

Logan Dane

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the difference between the data types "int" and "string"?

'int' represents whole numbers, while 'string' represents sequences of characters.

'int' represents characters, while 'string' represents numbers.
'int' represents decimal numbers, while 'string' represents whole numbers.
'int' represents positive numbers, while 'string' represents negative numbers.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are variables in Python?

Variables in Python are used to control the flow of a program.

Variables in Python are used to look cool and awesome.

Variables in Python are used to store data values.
Variables in Python are used to define functions.

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What are booleans?

Numbers between 1 and 10
Strings of text
Arrays of values
True or false values

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

How do you check if two values are equal in Python?

==
<>
is
!=

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the difference between "=" and "==" in Python?

The '=' operator is used for assignment, while the '==' operator is used for comparison.
The '=' operator is used for assignment, while the '==' operator is used for arithmetic operations.
The '=' operator is used for comparison, while the '==' operator is used for logical operations.
The '=' operator is used for comparison, while the '==' operator is used for assignment.

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output to the python code?
X = 5

Y = 5

print(X == Y)

Error
True
None
False

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output to this Python code?

X = 5

Y = 3

print(X == Y)

False
3
5
True

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?