
PCSE

Quiz
•
Computers
•
9th - 12th Grade
•
Medium

Neil Ball
Used 16+ times
FREE Resource
57 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
What is the value returned from this code?
print(type(4))
<type 'bool'>
<class 'int'>
<type 'str'>
Undefined
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which line of code inserted in the program will add a random item from the list each time the loop runs?
prize_list = random.choice(rand_item)
rand_item = option_list.random(prize_list)
rand_item = random.choice(option_list)
rand_item = option_list.random()
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which collection structure allows items that are ordered and unchangeable?
Tuple
Dictionary
List
Set
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following code snippets would be the correct way to import everything from a module
Option 1
Option 2
Option 3
Option 4
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
A developer wants to read a text file but he is unsure if the file exists in the current directory. Suggest a suitable module that would be used to check for the presence of the file in the current working directory.
os module
file module
re module
sys module
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Consider the following piece of code. Which of the following is true?
from sklearn.linear_model import LinearRegression
sklearn is a module and kernel_approximation is a package
sklearn and linear_model are both packages
LinearRegression is a module, which comes the linear_model package
linear_model is a module of the sklearn package
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
The pip command line utility allows the developer to install _______?
Python modules
Invalid
Python libraries
Python packages
Create a free account and access millions of resources
Similar Resources on Wayground
60 questions
Y11 Robust Programs Homework

Quiz
•
12th Grade
57 questions
Quiz on Syntax, Runtime, and Logical Errors

Quiz
•
11th Grade
55 questions
Advanced HTML5 & CSS3 Part IV

Quiz
•
9th - 12th Grade
62 questions
Computer Science - Programming PLC

Quiz
•
11th Grade
54 questions
Logic gates

Quiz
•
9th Grade
53 questions
COMP2 KO Quiz

Quiz
•
10th - 11th Grade
61 questions
CS NEW Chapter 4 Processors Key terms words ALL

Quiz
•
11th - 12th Grade
59 questions
Chuyên đề 1. Các kiến thức cơ bản_Python

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade