Unit 2 - Programming (Python)

Unit 2 - Programming (Python)

9th Grade

45 Qs

quiz-placeholder

Similar activities

CodeHS Unit 8

CodeHS Unit 8

9th - 12th Grade

48 Qs

CodeHS U8 8.1

CodeHS U8 8.1

9th - 12th Grade

48 Qs

Comp Sci. Examination  March 13th

Comp Sci. Examination March 13th

9th - 12th Grade

50 Qs

OCR Computer Science Paper 2 Revision Quiz #2

OCR Computer Science Paper 2 Revision Quiz #2

9th - 10th Grade

50 Qs

Unit 2 review

Unit 2 review

9th - 12th Grade

42 Qs

Python Semester 1

Python Semester 1

1st - 10th Grade

41 Qs

Computer Science Final

Computer Science Final

9th - 12th Grade

50 Qs

AP CSP - Unit 4 Code.org Review

AP CSP - Unit 4 Code.org Review

9th - 12th Grade

44 Qs

Unit 2 - Programming (Python)

Unit 2 - Programming (Python)

Assessment

Quiz

Computers

9th Grade

Easy

Created by

Zachary Jernigan

Used 1+ times

FREE Resource

45 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who created Python and when was it first released?

James Gosling, 1995

Guido van Rossum, 1991

Dennis Ritchie, 1972

Bjarne Stroustrup, 1983

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is one reason Python is considered beginner-friendly?

Complex syntax

Requires extensive setup

Simple syntax

Limited resources

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a use for Python?

Web development

Data analysis

Machine learning

Operating system development

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic usage of the print function in Python?

To perform mathematical calculations

To display text or variables

To create loops

To define functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are formatted strings (f-strings) used for in Python?

To create arrays

To embed expressions inside string literals

To perform file operations

To handle exceptions

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a variable in a program?

To store data for later use

To execute code

To display output

To create loops

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is an example of assigning a value to a variable?

print("Hello, World!")

score = 100

if score > 50

for i in range(5)

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?