PCAP-31-03

PCAP-31-03

12th Grade

33 Qs

quiz-placeholder

Similar activities

Knowledge Assessment Quiz

Knowledge Assessment Quiz

8th Grade - University

30 Qs

Summative Assessment on Python

Summative Assessment on Python

12th Grade

30 Qs

TEST BANK: NETWORKS AND DIGITAL SECURITY

TEST BANK: NETWORKS AND DIGITAL SECURITY

9th - 12th Grade

35 Qs

Python Educational Quiz: Variables and Mathematical Symbols

Python Educational Quiz: Variables and Mathematical Symbols

8th Grade - University

30 Qs

Text, Visual, Audio and Motion Media Quiz #2

Text, Visual, Audio and Motion Media Quiz #2

11th Grade - University

30 Qs

MIL 1st Quarter Summative

MIL 1st Quarter Summative

12th Grade

30 Qs

EMPOWERMENT TECH

EMPOWERMENT TECH

11th 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?