Python Basics Quiz

Python Basics Quiz

9th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

UAS Praktikum: Logika dan Algoritma Pemrograman

UAS Praktikum: Logika dan Algoritma Pemrograman

1st Grade - University

10 Qs

ABC in python

ABC in python

9th Grade

14 Qs

Java Quiz 3: Object-Oriented Programming Concepts

Java Quiz 3: Object-Oriented Programming Concepts

6th - 12th Grade

8 Qs

STRING MANIPULATION (PYTHON)

STRING MANIPULATION (PYTHON)

11th - 12th Grade

10 Qs

Python Basics

Python Basics

KG - University

16 Qs

Project-Stem Unit 1 python coding

Project-Stem Unit 1 python coding

9th - 12th Grade

12 Qs

G10 CS String Manipulation

G10 CS String Manipulation

12th Grade

15 Qs

Java Quiz 1: Introduction

Java Quiz 1: Introduction

6th - 12th Grade

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Computers

9th - 12th 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 store data

To print text

To perform calculations

To comment on code

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you concatenate (add together) two strings in Python?

str1 + str2

str1 . str2

str1, str2

concatenate(str1, str2)

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the print() function do in Python?

Takes user input

Displays output to the console

Performs mathematical operations

Declares variables

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is used to take user input in Python?

get_input()

read_input()

input()

user_input()

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of the following is a valid string in Python?

"dog"

dog

(dog)

^dog^

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of the following code?

x = "apple"

y = "banana"

z = x + y

print(z)

x + y

applebanana

apple banana

z

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What data type does the input() function return?

Integer

Float

String

Boolean

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?