Python CodeHS Nov. 6
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
PRESTON COLE
Used 9+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
What is the result of the following code snippet?
"ompuompu"
"ComputComput"
"ComputerComputer"
"ompComp"
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the following function return when called with calculate(2, 3)?
5
-1
1
3
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Arduino
Quiz
•
7th - 9th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
11 questions
ICT - Networks and communication
Quiz
•
9th Grade
10 questions
แบบทดสอบก่อนเรียน กราฟิกและการออกแบบเว็บไซต์
Quiz
•
9th Grade
10 questions
Quizzone Gmail
Quiz
•
9th - 12th Grade
15 questions
History of Computers
Quiz
•
6th - 12th Grade
12 questions
Kuiz Komputer dan ICT
Quiz
•
1st Grade - University
15 questions
Networking Quiz
Quiz
•
8th - 9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
