Search Header Logo

Quizz Day 2 Python Testing Short Version

Authored by Tarek FALEH

Information Technology (IT)

Professional Development

Used 1+ times

Quizz Day  2 Python  Testing Short Version
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a unit test?

A tool to deploy code
Code verifying correctness of a small, isolated unit
A function that compiles code
A system log

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Unit tests help detect bugs

Only in production
Early during development
During deployment
Never

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Unit tests enable refactoring because

They guarantee data privacy
They detect regressions automatically
They prevent imports
They reduce file size

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Unit tests serve as

Documentation and examples
Logging files
Compilers
Debuggers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Writing testable code improves

Design and architecture
Speed only
File system
None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pytest originated from

NumPy project
PyPy project
Django project
Flask project

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pytest is a

Web framework
Testing framework for Python
Compiler
Code formatter

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?