
Quiz on Modularity and Functions

Quiz
•
Information Technology (IT)
•
University
•
Hard
Abhishek Swami
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is one main advantage of modular programming?
Increases execution time
Reduces the number of functions
Avoids use of loops
Makes code reusable and easier to debug
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a disadvantage of modularity?
Difficult to maintain
Slows down debugging
Increased memory overhead due to function calls
Code readability decreases
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
Hello
HelloHello
Hello\nHello
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, a variable declared inside a function is:
Always global
Local by default
Static
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
10 10
5 10
5 5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to access a global variable inside a function?
local
nonlocal
global
var
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this code?
10
20
Error
0
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Module 5: Creating Dynamic Web Pages with Scripting

Quiz
•
University
15 questions
CMDP2063 Unix and C Programming (Revision)

Quiz
•
University
20 questions
Python Programming Quiz

Quiz
•
University
15 questions
Codean - JavaScript Variablel & Function

Quiz
•
University
24 questions
LAB_Quiz-2

Quiz
•
University
15 questions
Quiz Pemrograman Python

Quiz
•
10th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
23 questions
C++ Functions Quiz

Quiz
•
University
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 Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University