Search Header Logo

G.10 D.P Unit 1 Exercise: pg.54,55,56

Authored by W. Gamal

Computers

10th Grade

Used 5+ times

G.10 D.P Unit 1 Exercise: pg.54,55,56
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python is a/an ___________________.

a. object-oriented programming language

b. dynamically typed programming language

c. interpreted programming language

d. all of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid docstring for the given function?

def add(a,b):

a. # This function adds two numbers

b. // This function adds two numbers

c. ''' This function adds two numbers.'''

d. '' This function adds two numbers.''

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a random module, which of the following functions returns a random number within a specified range?

A. random()

B. randint()

C. choice(sequence)

D. None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


4. The functions whose body does not contain any statements are known as __________

a. blank functions

b. incomplete functions

c. empty functions

d. null functions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 5. Which function in the time module returns the current time?

a. time.time( )

b. get_time( )

c. time.now( )

d. get_current_time( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 6. In the following statements, which one is not a step to create test cases?

a. Understanding what is expected of the tested feature or functionality.

b. Identifying the goals of the test by deciding what it is trying to verify and what the desired result is for each test case.

c. Collecting the necessary information for the test case, such as inputs, expected outputs, and prerequisites.

d. None of the above.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

  1. 7. Which one of the following best describes the Pytest library?

a. Pytest is a library for testing web applications using Python.

b. Pytest is a well-known testing framework that is utilized frequently by python developers as well as companies in order to test their programs and libraries.

c. Pytest is a library for testing graphical user interface in Python.

d. None of the above.

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?