Search Header Logo

Python Exam 2

Authored by Dr Mohsin

Computers

University

Used 2+ times

Python Exam 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A group of statements that exist within a program for the purpose of performing a specific task is a(n) ______

block

function

parameter

expression

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A design technique that helps to reduce the duplication of code within a program and is a benefit of using functions is

code reuse

divide and conquer

debugging

facilitation of teamwork

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You ______ the method to execute it

define

call

import

export

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A design technique that programmers use to break down an algorithm into functions is known as

top-down design

code simplification

code refactoring

hierarchical subtasking

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The first line of a method definition is known as the

header

introduction

initialization

title

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ______ is a diagram that gives a visual representation of the relationships between functions in a program

flowchart

function relationship chart

symbol chart

hierarchy chart

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A(n) ______ variable is created inside a function.

global

constant

defined

local

Access all questions and much more by creating a free account

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?