Unit 2.2 Programming Techniques MCQs L2

Quiz
•
Computers
•
10th Grade
•
Hard
Matt Fearn
Used 17+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following is true about Top-down approach
The Main procedure is defined first, with other subs to follow
The detailed list of all operations is drawn up first, before we can start planning
We start from the top of the program and complete the algorithm by getting to the
bottom of it
Functions can’t be included as they can’t be directly called by procedures.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Structured code has the following benefit
Reduces the number of lines of code
Improves efficiency
Makes code easier to read and debug
All of these options are true
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variable scope refers to
Variable data type
Variable identifier
Logic errors associated with a variable
Different use of global and local variables
4.
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
5.
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
6.
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
7.
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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
16 questions
algorithms and programming

Quiz
•
8th - 10th Grade
20 questions
CM Adventure Part 1 - For Loop

Quiz
•
6th - 10th Grade
15 questions
CS 2nd Semester Mid-Term

Quiz
•
10th Grade - University
18 questions
Python 2D Lists Quiz

Quiz
•
10th Grade
20 questions
September 22

Quiz
•
3rd - 12th Grade
15 questions
C Programming Concepts

Quiz
•
10th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade