Functions & Procedures

Functions & Procedures

12th Grade

36 Qs

quiz-placeholder

Similar activities

Unit 2: Properties

Unit 2: Properties

9th - 12th Grade

32 Qs

Intro to Java Exam Review

Intro to Java Exam Review

9th - 12th Grade

40 Qs

Python Midterm Review

Python Midterm Review

KG - Professional Development

33 Qs

Scratch Graduation

Scratch Graduation

9th - 12th Grade

40 Qs

2.1.1 CSE Transitioning from Block to Text Coding

2.1.1 CSE Transitioning from Block to Text Coding

9th - 12th Grade

33 Qs

CB30: Unit 2 Test Review

CB30: Unit 2 Test Review

9th - 12th Grade

34 Qs

JavaScript Functions and Parameters

JavaScript Functions and Parameters

9th - 12th Grade

33 Qs

Computer Science Concepts and Terminology

Computer Science Concepts and Terminology

9th - 12th Grade

34 Qs

Functions & Procedures

Functions & Procedures

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Moses Balogun

Used 28+ times

FREE Resource

36 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The main difference between procedures and functions is

Procedures are usually longer and have more instructions

Functions use parameter passing, while procedures don’t

Functions are more difficult to debug

Functions return values, while procedures don’t

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The advantages of parameter passing don’t include this

The same subprogram can be reused in more cases

Parameter passing makes it easier to use global variables

More flexible coding

Can cut down on the use of wasteful global variables

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Converting procedures to functions usually causes these effects

Shorter code

Slows the program down

Reduction of the number of global variables, more parameter passing

Makes it more difficult to use selection

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trying to use a local variable from outside its scope will cause

A global variable to be overwritten by it

A wrong procedure to run

A crash with a report “Unknown variable”

A logical error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a variable first appears outside any subprograms

It is a global variable

It is a local variable

It is a parameter variable

It is not a valid variable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What term is used to describe data passed into/out of a program?

Variable

Loop

Constant

Parameter

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a procedure?
A small section of code within a program which performs a task
Code which produces a calculated result

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers