Python Basics 2

Python Basics 2

9th Grade

12 Qs

quiz-placeholder

Similar activities

สอบเก็บคะแนน ไพทอน ม.4

สอบเก็บคะแนน ไพทอน ม.4

9th - 12th Grade

10 Qs

Unit 1: Computer parts

Unit 1: Computer parts

9th - 12th Grade

13 Qs

Systems Architecture

Systems Architecture

KG - 9th Grade

15 Qs

Hardware and Software

Hardware and Software

KG - University

10 Qs

ทดสอบพื้นฐานการใช้งานคอมพิวเตอร์

ทดสอบพื้นฐานการใช้งานคอมพิวเตอร์

9th - 12th Grade

10 Qs

ICT 9 Pre-Test

ICT 9 Pre-Test

9th Grade

10 Qs

Test sul Software

Test sul Software

9th Grade

10 Qs

ASK - Kuiz Bab 1

ASK - Kuiz Bab 1

9th Grade

10 Qs

Python Basics 2

Python Basics 2

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Devin Lachapelle

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...

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

Access all questions and much more by creating a free account

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?