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. The creation (write) of the code.
declaration
procedural abstraction
stack frame
implementation
2. A ________ statement is what follows the 'then' in an (if-then statement) and precedes the first semi-colon.
Sequence
NOT
simple
compound
3. Local variables have _______ kind of scope
If-Then
stack frame
limited
If-Then
4. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.
single
if-then-else
statement
trace tables
5. In Pascal Programs are executed one ______ at a time.
While-Do
statement
selection structure
Scope Rule 3
6. Boolean expressions can be simple or _______
compound
control
simple
Modular
7. They can store values passed on to them but cannot return any values.
stack frame
value parameters
compound statement
Formal
8. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.
Selection
limited
relational operators
candidate
9. ________ design is the key to the ability to create large systems.
Modular
Selection
fundamental scope principle
While-Do
10. ______ design starts by identifying tasks at the bottom level and then combine them to solve the main problem.
not
call
bottom up
value parameters
11. A _________ statement is what follows the 'then' in an (if-then statement) and is enclosed within the begin-end pair.
call
compound
OR
bottom up
12. This is where the module is invoked or called.
compilation
call
candidate
software design
13. A parameter that is specified as part of a function definition.
Formal parameters
Else
variable parameters
Repeat-Until
14. Less than - equal to - not equal to etc. are examples of _________
relational operators
sequential structure
parameters
Scope Rule 2
15. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.
Declaration
AND
selection structure
binary half adder
16. Modules are defined in the ______ part of a program - under the constant.
implementation
declaration
fundamental scope principle
Requirements Gathering/Analysis
17. <> is the symbol for ___ equal to
candidate
not
if
testing
18. The two types of parameters are: ______ and Actual.
control
Formal
deployment/maintenance
not
19. Break system into manageable units or modules.
Declaration
software design
single
statement
20. In a multiple ____ statement (Non-Exclusive Condition) any or all or none of the conditions may be true - they are independent.
Formal
If
binary half adder
local
21. When true the if executes the body which is a _________ statement.
Requirements Gathering/Analysis
control
single
testing
22. A nested decision making statement can also have a ____ in the inner statement.
call
OR
AND
Else
23. The testing of the complete program to determine the overall system functions.
system testing
fundamental scope principle
top down
independent
24. Parameters act like _____ variables within a module
OR
compound
local
Formal parameters
25. 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.
NOT
Scope Rule 3
Scope Rule 1
integration testing
26. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.
if
limited
implementation
sequential structure
27. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
call
Repeat-Until
procedural abstraction
numeric
28. _______ design starts with high level idea of a solution and successively refine it. It favors hierarchial organization.
integration testing
OR
While-Do
top down
29. Where the statements for the module are coded.
definition
compound
single
If-Then
30. The space on the task which holds the formal parameters local variables and the return value.
deployment/maintenance
software design
While-Do
stack frame
31. A parameter value that is used in a function call or in a message sent to an object.
compound
Actual parameters
top down
definition
32. 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.
Formal
trace tables
parameters
simple
33. In ______ decision making when the first decision must evaluate to true before the successive (next) decisions are even considered for evaluation. One decision is made inside another. The outer decisions must evaluate to true before inner decisions a
nested
definition
relational operators
Formal parameters
34. 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.
if-else
NOT
If-Then
if
35. 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
trace tables
Formal parameters
simple
36. True and False are the two _____ constants
software design
Declaration
Character
boolean
37. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
XOR
if-else
Requirements Gathering/Analysis
if-then-else
38. Typically a variable that determines whether or not the loop executes or not.
Modular
control
if
Scope Rule 2
39. 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.
OR
pass by reference
If-Then
integration testing
40. An item declared within a procedure or function is not accessible outside that procedure or function.
Sequence
Scope Rule 1
Modular
compound statement
41. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.
OR
Formal parameters
If
pass by value
42. _____ error happens when the type and number of parameters does not match?
compilation
if
AND
Formal
43. Test each module in isolation and test the modules all together and make sure every line of code is tested.
testing
compound
if-then-else
pass by value
44. An ____ statement evaluates a Boolean expression. The code will only be executed when the expression evaluates to true.
if
statement
relational operators
if-else
45. The scope of an entity is the program or subprogram in which it is declared.
boolean
stack frame
fundamental scope principle
Else
46. Used to trace the execution of an algorithm.
stack frame
Else
sequential structure
trace tables
47. Variable When a variable is declared under a procedure it is a _____ variable?
Local
OR
top down
not
48. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)
Actual parameters
candidate
NOT
compilation
49. 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).
limited
Repeat-Until
if-else
if
50. A logical circuit which is used to add two binary digits.
binary half adder
If
if-then-else
software design