Quiz on Modularity and Functions

Quiz on Modularity and Functions

University

20 Qs

quiz-placeholder

Similar activities

HackHarbor 3.0 : Day 1

HackHarbor 3.0 : Day 1

University

16 Qs

BASIC PC COMPONENTS AND TROUBLESHOOTING  - BATCH 1

BASIC PC COMPONENTS AND TROUBLESHOOTING - BATCH 1

University

15 Qs

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

CHAPTER 1: SYSTEM ANALYSIS AND DESIGN

University

18 Qs

Information Technology Quiz

Information Technology Quiz

University

20 Qs

Midterm_Quiz2_M7-8

Midterm_Quiz2_M7-8

University

20 Qs

Activity - Task Completion and Safety

Activity - Task Completion and Safety

9th Grade - University

20 Qs

Algoritma Struktur Data

Algoritma Struktur Data

University

20 Qs

Quiz on Modularity and Functions

Quiz on Modularity and Functions

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

Abhishek Swami

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?