SUBJECTS
|
BROWSE
|
CAREER CENTER
|
POPULAR
|
JOIN
|
LOGIN
Business Skills
|
Soft Skills
|
Basic Literacy
|
Certifications
About
|
Help
|
Privacy
|
Terms
|
Email
Search
Test your basic knowledge |
Pascal Programming
Start Test
Study First
Subject
:
it-skills
Instructions:
Answer 50 questions in 15 minutes.
If you are not ready to take this test, you can
study here
.
Match each statement with the correct term.
Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.
This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. Typically a variable that determines whether or not the loop executes or not.
Formal parameters
OR
control
Repeat-Until
2. They can store values passed on to them but cannot return any values.
If-Then
simple
Actual parameters
value parameters
3. Parameters act like _____ variables within a module
If-Then
simple
local
Character
4. True and False are the two _____ constants
OR
boolean
Sequence
procedural abstraction
5. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.
value parameters
pass by reference
definition
Called
6. When true the if executes the body which is a _________ statement.
single
if-else
bottom up
boolean
7. Modules can be called anywhere in the program - but must be done after their ______.
compilation
definition
Scope Rule 3
compound
8. A ________ statement is what follows the 'then' in an (if-then statement) and precedes the first semi-colon.
definition
Local
simple
boolean
9. A body of ______ consists of multiple statements. The statements do have a semicolon - including the end (from the begin and end).
If-Then
compilation
selection structure
testing
10. The creation (write) of the code.
Actual parameters
statement
independent
implementation
11. An entity declared in a subprogram can be accessed by any subprogram defined within it - provided that no entity with the same name is declared in the internal subprogram.
local
stack frame
If-Then
Scope Rule 3
12. Variable When a variable is declared under a procedure it is a _____ variable?
if
value parameters
Local
system testing
13. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.
sequential structure
binary half adder
if
statement
14. A parameter that is specified as part of a function definition.
system testing
Formal parameters
definition
binary half adder
15. To test that the subprograms are integrated into the program correctly. That they interact with one another correctly - passing the required information to and from one another.
boolean
numeric
While-Do
integration testing
16. <> is the symbol for ___ equal to
not
candidate
compound
call
17. In a multiple ____ statement (Non-Exclusive Condition) any or all or none of the conditions may be true - they are independent.
Selection
OR
If
bottom up
18. A global entity is accessible throughout the main program and in any subprogram in which no local entity has the same name as the global item.
Scope Rule 2
Selection
Procedures
relational operators
19. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.
pass by value
candidate
binary half adder
top down
20. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.
Requirements Gathering/Analysis
Procedures
Called
Sequence
21. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.
statement
simple
Requirements Gathering/Analysis
While-Do
22. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.
stack frame
Modular
fundamental scope principle
OR
23. A ______ statement is generally used when the number of times that the loop executes is not known in advance. The loop executes as long as the boolean expression is true.
While-Do
Requirements Gathering/Analysis
numeric
statement
24. The stucture of a procedure: Heading - ______ - Statement
Declaration
compound
NOT
OR
25. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.
Selection
Sequence
not
pass by reference
26. Finding a ________ module is the process of going from a problem description to writing a program that fulfills those requirements. They cannot be summarized in just a series of steps that fit all scenarios.
pass by reference
If-Then
definition
candidate
27. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant
if-else
if
nested
Character
28. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
Local
procedural abstraction
relational operators
XOR
29. A logical circuit which is used to add two binary digits.
binary half adder
not
local
boolean
30. A special kind of variable used in a subroutine to refer to one of the pieces of data provided as input to the subroutine. Values can be passed from outside the procedure.
candidate
Repeat-Until
Character
parameters
31. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
Repeat-Until
implementation
not
compound
32. For an ____ Boolean Expression to be true the Boolean expressions must evaluate to true before the entire expression is true. If any expression is false then whole expression evaluates to false.
Sequence
top down
AND
single
33. An _____ statement allows the programmer to specify the statement selected for execution when the expression is true. It also indicates an alternative statement when the expression is false.
Repeat-Until
if
implementation
candidate
34. This is where the module is invoked or called.
pass by reference
call
procedural abstraction
sequential structure
35. The scope of an entity is the program or subprogram in which it is declared.
control
fundamental scope principle
Formal
Local
36. In Pascal Programs are executed one ______ at a time.
variable parameters
stack frame
statement
Else
37. ________ design is the key to the ability to create large systems.
Modular
compound
variable parameters
binary half adder
38. A _________ statement is what follows the 'then' in an (if-then statement) and is enclosed within the begin-end pair.
compound
OR
Scope Rule 1
Formal parameters
39. Where the statements for the module are coded.
statement
NOT
OR
definition
40. The three categories for a program structure are: ____ - Branching/Selection - Looping/Iteration
Repeat-Until
Selection
top down
Sequence
41. They can both receive and return values.
independent
variable parameters
relational operators
sequential structure
42. _____ error happens when the type and number of parameters does not match?
boolean
trace tables
pass by value
compilation
43. An ______ statement evaluates a Boolean expression. A different code will be executed if the expression evaluates to true (the body of the if) than if the expression evaluates to false (the body of the else).
if-else
Repeat-Until
software design
relational operators
44. Modulars are ________ from one another
nested
Local
Formal parameters
independent
45. The space on the task which holds the formal parameters local variables and the return value.
bottom up
Scope Rule 2
compilation
stack frame
46. ______ Decision Making checks if a particular condition is true.
compound
If-Then
if-else
Modular
47. Deploy the software and fix bugs and modify to satisfy changing requirements.
Selection
deployment/maintenance
nested
compound
48. An ____ statement evaluates a Boolean expression. The code will only be executed when the expression evaluates to true.
compound statement
if
OR
if-else
49. The testing of the complete program to determine the overall system functions.
system testing
Scope Rule 3
single
integration testing
50. Test each module in isolation and test the modules all together and make sure every line of code is tested.
control
statement
if-then-else
testing