PCSE

PCSE

9th - 12th Grade

57 Qs

quiz-placeholder

Similar activities

on tap cuoi ki 1 tin 12

on tap cuoi ki 1 tin 12

12th Grade

60 Qs

Unit 2 Data Representation

Unit 2 Data Representation

4th - 10th Grade

57 Qs

Massive GCSE Computer Science Quiz

Massive GCSE Computer Science Quiz

10th - 11th Grade

61 Qs

Računarski hardver

Računarski hardver

9th - 12th Grade

53 Qs

TEK LAYANAN JARINGAN

TEK LAYANAN JARINGAN

11th Grade

56 Qs

#5 CIW Data Analyst - Certification Prep

#5 CIW Data Analyst - Certification Prep

9th Grade - University

54 Qs

Ulangan Harian

Ulangan Harian

12th Grade

60 Qs

ÔN TẬP KIỂM TRA HK 1 ĐỊA LÍ 10

ÔN TẬP KIỂM TRA HK 1 ĐỊA LÍ 10

10th Grade

52 Qs

PCSE

PCSE

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Neil Ball

Used 16+ times

FREE Resource

AI

Enhance your content

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

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

Media Image

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

Media Image

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

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?