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

Quiz
•
Computers
•
10th Grade
•
Hard
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
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
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
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
Similar Resources on Wayground
12 questions
Python Loops

Quiz
•
9th - 11th Grade
10 questions
10 CS // Pseudocode

Quiz
•
9th - 11th Grade
10 questions
Python

Quiz
•
3rd - 10th Grade
10 questions
Python Testing

Quiz
•
9th - 12th Grade
15 questions
Functions and Exceptions

Quiz
•
10th - 12th Grade
12 questions
Coding and Robotics

Quiz
•
8th - 12th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
8 questions
Python Debugging

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade