Lesson 27 – Concept of arguments

Quiz
•
Professional Development, Education
•
5th - 8th Grade
•
Medium
NotchUp .co
Used 29+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following enclose the input parameters or arguments of a function?
rackets
parenthesis
curly braces
quotation marks
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default return value for a function that does not return any value explicitely ?
int
float
string
none
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function definition does not return any value?
a function that prints integers from 1 to 100.
a function that returns a random integer from 1 to 100
a function that checks
whether the current second is an integer from 1 to 100.
a function that converts an uppercase letter to lowercase.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements correctly represent the function body in the given code snippet?
return “number”
print(number)
print(“number”)
return number
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
which statement is correct about the given program ?
HelloHelloHelloHelloHello
HelloHelloHelloHello
invalid call
infinite loop
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of following code ?
welcomeviewers
welcomeviewersviewersviewers
welcomeviewers,viewers,viewers
welcome
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function declaration is correct?
def f(a = 1, b):
def f(a = 1, b, c = 2):
def f(a = 1, b = 1, c = 2):
def f(a = 1, b = 1, c = 2, d):
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Lesson 26 – Types of functions

Quiz
•
5th - 8th Grade
10 questions
Lesson 39 Test-5

Quiz
•
5th - 8th Grade
15 questions
Python Basics Quiz

Quiz
•
6th - 10th Grade
10 questions
PYTHON ISHAAN2412

Quiz
•
6th - 9th Grade
15 questions
Python Basics Quiz

Quiz
•
8th Grade
15 questions
Тест по фун-ям

Quiz
•
7th Grade
10 questions
Ghraas Review

Quiz
•
1st - 5th Grade
15 questions
Him, her or them?

Quiz
•
4th - 6th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
10 questions
Chaffey

Quiz
•
9th - 12th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
Discover more resources for Professional Development
15 questions
PRIDE

Quiz
•
6th - 8th Grade
22 questions
6-8 Digital Citizenship Review

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
27 questions
Geo #2 Regions

Quiz
•
8th Grade
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade