Python CodeHS Nov. 6

Python CodeHS Nov. 6

9th Grade

10 Qs

quiz-placeholder

Similar activities

Cyber Security KS4

Cyber Security KS4

8th - 12th Grade

15 Qs

LA1.C1: Introduction to Small Basic

LA1.C1: Introduction to Small Basic

9th Grade

15 Qs

WJEC GCSE ICT Unit 1 E-Mail

WJEC GCSE ICT Unit 1 E-Mail

9th - 10th Grade

13 Qs

Kuis Pengayaan (Aplikasi Sehari-hari?

Kuis Pengayaan (Aplikasi Sehari-hari?

9th Grade

10 Qs

Scratch

Scratch

KG - Professional Development

10 Qs

Week 2 ( Prepare Hand Tools)

Week 2 ( Prepare Hand Tools)

9th Grade

10 Qs

Review

Review

9th - 12th Grade

10 Qs

ESBWB Workbook Domain 1 Lesson 2

ESBWB Workbook Domain 1 Lesson 2

9th - 12th Grade

15 Qs

Python CodeHS Nov. 6

Python CodeHS Nov. 6

Assessment

Quiz

Computers

9th Grade

Practice Problem

Hard

Created by

PRESTON COLE

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

2.0

2

2.125

An error occurs

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of the following code snippet?

"ompuompu"

"ComputComput"

"ComputerComputer"

"ompComp"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What does the following function return when called with calculate(2, 3)?

5

-1

1

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will the following loop run?

3 times

4 times

5 times

The loop will run indefinitely

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following is true about the following code?

The code contains a syntax error

The code contains two comments

The code will print the comments to the console

The code will not run because of the comment on line 2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the result of executing the following list operation?

[1, 6, 7, 5]

[1, 2, 3, 6, 7]

[6, 7, 5]

[1, 6, 7, 7, 5]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the string file_name = "report_final_copy.doc"

Which of the following operations would correctly change the file extension

to .pdf and store it in a new string `new_file_name`?

new_file_name = file_name.replace("doc", "pdf")

new_file_name = file_name[:-3] + 'pdf'

new_file_name = file_name.split(".")[0] + '.pdf'

All of the above

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?