Python Functions

Quiz
•
Other
•
Professional Development
•
Hard

Ajay Tech
Used 150+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the code above will be
0
1
99
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How to add these two numbers
age = int(age_1) + int(age_2)
age = int(age_1 + age_2)
age = age_1 + age_2
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
The string enclosed in triple quotes is called the doc string. It is used to
Show the documentation about the function
be read by the developer reading the function code
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following code is true
square() will return 25
square(3) will return 9
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true
The code above will result in syntax error
square(2,2) will result in a value of 4
square(2,3) will result in a value of 9
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The above code is the signature of the print function in Python.
*objects represents
Variable number of arguments that can be passed as strings
pointer to objects in memory
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The code above
Takes in variable number of arguments and returns the sum of them
Takes in a pointer to a list of numbers and returns the sum of them
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the code above is
<class 'tuple'>
<class 'list'>
<class 'dict'>
<class 'string'>
<class 'iterable'>
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The output of the code above is
40
30
syntax error
Similar Resources on Wayground
6 questions
Captain America

Quiz
•
KG - Professional Dev...
13 questions
INCOME TAX

Quiz
•
Professional Development
10 questions
ISM and ISPS

Quiz
•
Professional Development
10 questions
Introduction to morse code

Quiz
•
Professional Development
9 questions
The FRAG Quiz

Quiz
•
KG - Professional Dev...
10 questions
C Basic

Quiz
•
Professional Development
10 questions
Sales Academy Review Game

Quiz
•
Professional Development
10 questions
CI PILLAR: CI QUIZ (April 2022)

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development