Computer Science - Text-Based Programming - Python - Modules and libraries - Module Usage Quiz

8 questions. Q1: Which import lets you use sqrt() directly without prefix? → from math import sqrt. Q2: random.randint(1, 6) can return which values? → 1, 2, 3, 4, 5, or 6 (inclusive both ends). Q3: What does 'import math as m' let you do? → Use m.pi instead of math.pi. Q4: How to get today's date?

Edodovivmagarwal
Computer Science - Text-Based Programming - Python - Modules and libraries - Module Usage Quiz
Log in

Preparing your experience...

Loading scripts and resources

Comments (0)

0/5000

Comments are reviewed before appearing publicly.

About this Experience

Computer Science - Text-Based Programming - Python - Modules and libraries - Module Usage Quiz

vivmagarwal
vivmagarwalJan 29, 2026

Description

8 questions. Q1: Which import lets you use sqrt() directly without prefix? → from math import sqrt. Q2: random.randint(1, 6) can return which values? → 1, 2, 3, 4, 5, or 6 (inclusive both ends). Q3: What does 'import math as m' let you do? → Use m.pi instead of math.pi. Q4: How to get today's date?

Details

Computer ScienceText-Based Programming - PythonClass 9, Class 9, Stage 9, Grade 9

Engagement

20

Likes

0

Remixes

0

Comments