PCAP-31-03

PCAP-31-03

12th Grade

33 Qs

quiz-placeholder

Similar activities

Introductory GIS Quiz

Introductory GIS Quiz

12th Grade

35 Qs

CEHRS Unit 1 Quiz: Non Clinical Operations

CEHRS Unit 1 Quiz: Non Clinical Operations

12th Grade

32 Qs

DATA PROCESSING SS2 HOLIDAY ASSIGNMENT

DATA PROCESSING SS2 HOLIDAY ASSIGNMENT

12th Grade

32 Qs

Empowerment Technologies Long Quiz

Empowerment Technologies Long Quiz

12th Grade - University

30 Qs

Google Sheet

Google Sheet

10th Grade - University

35 Qs

Karel Code Analysis Quiz

Karel Code Analysis Quiz

9th - 12th Grade

30 Qs

Network Operating Systems Quiz

Network Operating Systems Quiz

12th Grade - University

30 Qs

PCAP-31-03

PCAP-31-03

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

hend business

FREE Resource

AI

Enhance your content in a minute

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

33 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

1 min • 5 pts

What is true about Python packages? (Select two answers)

the __name__ variable content determines the way in which the module was run

a package can be stored as a tree of sub-directories/sub-folders

__pycache__ is the name of a built-in variable

hashbang is the name of a built-in Python function

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

A Python module named pymod.py contains a variable named pyvar. Which of the following snippets will let you access the variable?

import pyvar from pymod pyvar = 1

from pymod import pyvar = 1

from pymod import pyvar pyvar()

import pymod pymod.pyvar = 1

3.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)

len(random.sample([1,2,3],2)) > 2

v1 == v2

random.choice([1,2,3]) >=1

v1 >= 1

4.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Media Image

With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)

import pypack.module_a

import module_a from pypack

import module_a

from pypack import module_a

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which one of the platform module functions should be used to determine the underlying platform name?

platform.uname()

platform.platform()

platform.python_version()

platform.processor()

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What is the expected output of the following code?

True

0

False

None

7.

MULTIPLE SELECT QUESTION

1 min • 5 pts

What is true about the following snippet? (Select two answers)

Option A

Option B

Option C

Option D

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?