Python Basics 2

Python Basics 2

9th Grade

12 Qs

quiz-placeholder

Similar activities

AI-9A-PA1-Practical

AI-9A-PA1-Practical

9th Grade

10 Qs

Java Quiz 3: Object-Oriented Programming Concepts

Java Quiz 3: Object-Oriented Programming Concepts

6th - 12th Grade

8 Qs

JS Cikli un ne tikai

JS Cikli un ne tikai

9th Grade

10 Qs

year 8 lesson 2 quiz - python

year 8 lesson 2 quiz - python

8th - 10th Grade

14 Qs

Quiz1_HPB2021_2010t1

Quiz1_HPB2021_2010t1

1st - 12th Grade

10 Qs

Understanding Procedures

Understanding Procedures

9th Grade

12 Qs

for late students

for late students

6th - 9th Grade

11 Qs

Quiz 142 - Python inputs and outputs

Quiz 142 - Python inputs and outputs

9th Grade - University

15 Qs

Python Basics 2

Python Basics 2

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Devin Lachapelle

Used 1+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of a variable in Python?

To increase security

To perform mathematical calculations

To print text

To store data

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which code correctly shows making a variable and setting it equal to a string?

string_1 = "hello"

string 1 = "hello"

string_1 == "hello"

string_1 = hello

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to make a Python program show text on the screen?

display("Hello")

"Hello"

print("Hello")

show("Hello")

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What function is used to show text on the screen and let the user enter some text?

get_input()

input()

print()

get()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the if statement in Python?

To declare a variable

To repeat a block of code

To make decisions in the code

To perform mathematical operations

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct way to concatenate (combine) two strings in Python?

"Hello" .concat("World")

"Hello" add "World"

"Hello" && "World"

"Hello" + "World"

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of data does the input() function return (create)?

A decimal

A string

An integer

Nothing

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?