
Quiz 16
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Vishnuvardhan Reddy Avija
Used 12+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following function:
def square(num):
num_squared = num ** 2
return num_squared
Which of the following lines of codes is the function’s signature?
return num_squared
none
def square(num):
num_squared = num ** 2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the name given to that area of memory, where the system stores the parameters and local variables of a function call?
a heap
storage area
a stack
an array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def func(x = 1, y = 2):
x = x + y
y += 1
print(x, y)
func(y = 2, x = 1)
3 3
1 3
2 3
3 2
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
def func(x = 1, y = 2):
x = x + y
y += 1
print(x, y)
func(y = 20, x = 10)
30 20
30 21
21 30
20 30
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?def test(x = 1, y = 2):
x = x + y
y += 1
print(x, y)
test()
1 3
3 1
1 1
3 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
____________________ can be defined as a named group of instructions that accomplish a specific task when it is invoked/called.
Datatype
Function
Token
Operator
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following are advantages of using function in program?
It increases readability of program.
It increases reusability.
t makes debugging easier.
All of these
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Excel 2016 Formato de celda
Quiz
•
University
15 questions
Cuestionario sobre seguridad en línea
Quiz
•
2nd Grade - University
10 questions
Quiz Informatica Jornadas Orientación Asunción
Quiz
•
12th Grade - University
10 questions
BOOLEAN CLUB QUIZ 1
Quiz
•
University
10 questions
Internet
Quiz
•
University
11 questions
Explorando Redes Informáticas
Quiz
•
3rd Grade - University
10 questions
Prueba de Inteligencia Artificial Sección 0716
Quiz
•
University
10 questions
Seatwork HASH (Data Structure)
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
