Functions

Quiz
•
Computers
•
10th Grade
•
Medium
M Dwedari
Used 13+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
A .................... is a named block of code that is used to perform a task and will return one or more values (called the 'return value’).
A ................. can be called by another part of the program but does not return a value.
Procedure, Function
Argument, Parameter
Function, Procedure
Paramete, Argument
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which one of the following statements describes an advantage of subroutines?
Subroutines are always defined by the user, and these cannot be combined.
When creating very large programs, you can give different programmers different subroutines to write, and these can then be combined.
Procedures allow values to be returned to the procedure call.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Parameter is ......
The variable that information is passed to in a function
The data that is passed to a function
Data is sent back to be used by the main program after a function has been run.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Argument is ......
The variable that information is passed to in a function
The data that is passed to a function
Data is sent back to be used by the main program after a function has been run.
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In structured programming:
Each subroutine should have a clear interface. The data that the subroutine needs to manipulate or use should be specified as parameters which can be accepted by value or by reference.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In structured programming:
Each procedural program will have a main subroutine.
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In structured programming:
If the subroutine returns something, a single return statement at the end of the subroutine should be used.
True
False
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
In structured programming:
The data that the subroutine needs to manipulate or use should be specified as parameters which can be accepted by value or by reference.
True
False
Similar Resources on Wayground
8 questions
Big Data 2 starter

Quiz
•
9th - 12th Grade
10 questions
Vocabulary Do Now 1

Quiz
•
9th - 12th Grade
8 questions
Quiz on Structured Programming

Quiz
•
10th Grade
10 questions
Software Development Approaches

Quiz
•
9th - 12th Grade
13 questions
A words - GCSE Computer Science

Quiz
•
1st - 10th Grade
10 questions
Year 10 Subroutines Quiz

Quiz
•
10th Grade
10 questions
Understanding Subprograms and Subroutines

Quiz
•
10th - 12th Grade
10 questions
SQL

Quiz
•
10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade