Python Basics

Python Basics

9th Grade

30 Qs

quiz-placeholder

Similar activities

Quiz 3.1 - Operating Systems

Quiz 3.1 - Operating Systems

9th - 12th Grade

29 Qs

Programmvadāma ierīce un Datora sastāvdaļas

Programmvadāma ierīce un Datora sastāvdaļas

7th Grade - University

28 Qs

ASESMEN SUMATIF INFORMATIKA – KELAS VII

ASESMEN SUMATIF INFORMATIKA – KELAS VII

3rd Grade - University

25 Qs

ULANGAN BAB ALGORITMA PEMROGRAMAN KELAS 8

ULANGAN BAB ALGORITMA PEMROGRAMAN KELAS 8

8th Grade - University

25 Qs

Unity part_1

Unity part_1

9th - 12th Grade

25 Qs

Cyber II - Unit 1: Quiz 1 - Foundational Practice & Frameworks

Cyber II - Unit 1: Quiz 1 - Foundational Practice & Frameworks

9th - 12th Grade

25 Qs

PowerPoint - Chapter 2 Illustrating with Pictures and Graphics

PowerPoint - Chapter 2 Illustrating with Pictures and Graphics

9th Grade

25 Qs

Cybersecurity SEM 1 Terms

Cybersecurity SEM 1 Terms

9th - 12th Grade

25 Qs

Python Basics

Python Basics

Assessment

Quiz

Information Technology (IT)

9th Grade

Practice Problem

Easy

Created by

Philip Donaldson

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a variable named age and assign it the value 15?

a) age = 15

b) var age = 15

c) int age = 15

d) age: 15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code?

print("Hello, World!")

Hello, World!

hello, world!

Hello World

hello world

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to get input from the user in Python?

input()

get()

read()

scan()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?

name = input("Enter your name: ")

print("Hello, " + name)

Hello, name

Hello, followed by the user’s input

Enter your name: followed by the user’s input

name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add two numbers, a and b, and store the result in a variable sum?

sum = a + b

sum = a - b

sum = a * b

sum = a / b

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression? Python 10 - 3 * 2

4

14

16

20

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to print the value of a variable x?

print(x)

print x

echo(x)

echo x

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?