Intro Python - Input, Math, and Strings

Intro Python - Input, Math, and Strings

20 Qs

quiz-placeholder

Similar activities

Web quiz 1 - HTML/CSS

Web quiz 1 - HTML/CSS

University

20 Qs

Active Directory

Active Directory

7th Grade

21 Qs

Python Functions and File Operations Quiz cyber 2025

Python Functions and File Operations Quiz cyber 2025

University

18 Qs

scripts

scripts

9th Grade

20 Qs

Getting started with Alice

Getting started with Alice

3rd Grade

20 Qs

Python MCQ

Python MCQ

University

20 Qs

class 1 - Full Revision1

class 1 - Full Revision1

1st Grade

15 Qs

SMKN 4 Jakarta Quiz MikroTik Dasar

SMKN 4 Jakarta Quiz MikroTik Dasar

12th Grade

16 Qs

Intro Python - Input, Math, and Strings

Intro Python - Input, Math, and Strings

Assessment

Quiz

Computers

Easy

Created by

Bradbury Franklin

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What syntax would you use to create a name variable that accepts user input?

name=input()

input=name

name=input{}

name=INPUT

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why would you use a for loop or a while loop?

To repeat a piece of code

To create a loop

To input data

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a output?

A piece of data that is shown on the screen.

Data that the user enters

An output

A orange

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the final result of the following expression?

(5 - 3) * 2 - 4

-8
0
12
error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following expression?

(3 + (8 / 2 - 2)) ** 2

7
error
25
3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error?
print("2" + 3)
print(2 * 3)
print(2 * "3")
print("2" * 3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement will cause an error? The variable name has been previously defined as name = "Susan".
print("Hello" + Susan)
print("Hello", name)
print("Hello " + name)
print(f"Hello {name}")

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?