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

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

10th Grade

10 Qs

quiz-placeholder

Similar activities

Python Debugging

Python Debugging

9th - 12th Grade

8 Qs

Python Testing

Python Testing

9th - 12th Grade

10 Qs

Unit 6 Review

Unit 6 Review

9th - 12th Grade

11 Qs

Functions and Exceptions

Functions and Exceptions

10th - 12th Grade

15 Qs

LAMBDA Functions

LAMBDA Functions

10th Grade - Professional Development

7 Qs

Coding and Robotics

Coding and Robotics

8th - 12th Grade

12 Qs

Python_R

Python_R

2nd Grade - Professional Development

8 Qs

Python Basics

Python Basics

8th - 10th Grade

10 Qs

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

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

Assessment

Quiz

Computers

10th Grade

Hard

Created by

W. Gamal

Used 5+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?