Python 2

Python 2

9th Grade

23 Qs

quiz-placeholder

Similar activities

Year 8 IT - Network Communication

Year 8 IT - Network Communication

7th - 9th Grade

20 Qs

Kuis Pelatihan API Kutim By GIZ

Kuis Pelatihan API Kutim By GIZ

University - Professional Development

20 Qs

ETHICAL, LEGAL, AND SOCIAL ISSUES OF INFORMATION TECHNOLOGY

ETHICAL, LEGAL, AND SOCIAL ISSUES OF INFORMATION TECHNOLOGY

University

20 Qs

A level Y12 Data Representation - Numbers SETS

A level Y12 Data Representation - Numbers SETS

11th Grade - University

18 Qs

Edexcel Computer Science 2020 - Unit 04 - Quiz 01

Edexcel Computer Science 2020 - Unit 04 - Quiz 01

8th - 11th Grade

18 Qs

G9 Mod2 Summative Test - Computer Hardware

G9 Mod2 Summative Test - Computer Hardware

9th Grade

20 Qs

Grade 7 Comp - Unit 4 Review

Grade 7 Comp - Unit 4 Review

7th Grade - University

20 Qs

XI RPL - PHP

XI RPL - PHP

12th Grade

20 Qs

Python 2

Python 2

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Ayorinde Omojuwa

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which python operator means 'less than or equal to'?
>
<
>=
<=

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct way to convert user input is:

birth_year = number(input())

birth_year = int(input())

birth_year = (input(int))

birth_year = int(input)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output for the following code?

100

50

20

130

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of variables in Python?

Variables in Python are used to store data values for later use.

Variables in Python are used for decoration purposes only.

Variables in Python are used to perform mathematical operations.

Variables in Python are used to confuse the programmer.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

variable_name = value

variable_name : value

variable_name = value =

value = variable_name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the different types of conditional statements in Python?

when

unless

otherwise

if, elif, else

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for an if statement in Python?

if (condition) then

if condition:

if (condition):

if condition then:

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?