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
SENTENCE STRESS

Quiz
•
6th - 7th Grade
11 questions
Learn to speak Spanish

Quiz
•
1st Grade - Professio...
15 questions
ESL - Social Language

Quiz
•
6th - 8th Grade
5 questions
Python Marathon (Difficult Round)

Quiz
•
1st - 6th Grade
10 questions
Ôn tập kiến thức

Quiz
•
6th - 8th Grade
7 questions
IsAaC's IQ test 2.0!

Quiz
•
KG - 12th Grade
6 questions
language test

Quiz
•
1st - 10th Grade
15 questions
RAKHI SIBLING SPECIAL QUIZ

Quiz
•
2nd - 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 Professional Development
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
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
20 questions
Finding Volume of Rectangular Prisms

Quiz
•
5th Grade