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. A _________ statement is what follows the 'then' in an (if-then statement) and is enclosed within the begin-end pair.
compound
Selection
Scope Rule 1
control
2. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.
Formal parameters
pass by reference
deployment/maintenance
if-else
3. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.
if-else
nested
if
Procedures
4. A body of ______ consists of multiple statements. The statements do have a semicolon - including the end (from the begin and end).
variable parameters
If-Then
compilation
if-then-else
5. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
implementation
Formal parameters
XOR
OR
6. Local variables have _______ kind of scope
binary half adder
limited
value parameters
If-Then
7. 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.
parameters
definition
limited
numeric
8. A parameter value that is used in a function call or in a message sent to an object.
if
Actual parameters
compound statement
statement
9. 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
call
Procedures
10. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.
single
if-else
Declaration
if-then-else
11. They can store values passed on to them but cannot return any values.
not
Procedures
value parameters
Else
12. Modules are defined in the ______ part of a program - under the constant.
declaration
statement
Scope Rule 3
Else
13. Loops that never end because the stopping/exit condition is never met.
stack frame
infinite loops
Actual parameters
Sequence
14. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)
NOT
While-Do
deployment/maintenance
variable parameters
15. The testing of the complete program to determine the overall system functions.
system testing
Scope Rule 2
control
software design
16. Boolean expressions can be simple or _______
compound
call
fundamental scope principle
If-Then
17. A ________ statement is what follows the 'then' in an (if-then statement) and precedes the first semi-colon.
simple
candidate
if
pass by value
18. An item declared within a procedure or function is not accessible outside that procedure or function.
variable parameters
Character
Scope Rule 2
Scope Rule 1
19. The order of operations of the boolean operators from first to last is: NOT - AND - _____
compound
Actual parameters
testing
OR
20. Modules can be called anywhere in the program - but must be done after their ______.
definition
variable parameters
simple
infinite loops
21. A parameter that is specified as part of a function definition.
numeric
Formal parameters
selection structure
not
22. The three categories for a program structure are: ____ - Branching/Selection - Looping/Iteration
compound
definition
compound
Sequence
23. In Pascal Programs are executed one ______ at a time.
pass by value
Formal
deployment/maintenance
statement
24. 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.
selection structure
statement
While-Do
stack frame
25. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.
Scope Rule 1
compilation
call
selection structure
26. The stucture of a procedure: Heading - ______ - Statement
compound
Declaration
While-Do
If-Then
27. 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.
bottom up
integration testing
if
Procedures
28. 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).
NOT
if-else
limited
compilation
29. Break system into manageable units or modules.
testing
declaration
software design
Formal parameters
30. Modulars are ________ from one another
selection structure
Scope Rule 3
if-then-else
independent
31. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.
value parameters
sequential structure
deployment/maintenance
integration testing
32. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
XOR
if
local
Repeat-Until
33. When true the if executes the body which is a _________ statement.
definition
Repeat-Until
single
sequential structure
34. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant
simple
Character
fundamental scope principle
if-then-else
35. All modules must be _____ and they can call other modules.
Called
XOR
deployment/maintenance
software design
36. _______ design starts with high level idea of a solution and successively refine it. It favors hierarchial organization.
stack frame
declaration
top down
Sequence
37. ______ Decision Making checks if a particular condition is true.
nested
Declaration
If-Then
Sequence
38. The space on the task which holds the formal parameters local variables and the return value.
control
stack frame
system testing
testing
39. The two types of parameters are: ______ and Actual.
Formal
selection structure
definition
NOT
40. Deploy the software and fix bugs and modify to satisfy changing requirements.
boolean
parameters
deployment/maintenance
variable parameters
41. 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.
candidate
software design
pass by reference
if
42. True and False are the two _____ constants
independent
boolean
local
definition
43. The scope of an entity is the program or subprogram in which it is declared.
Requirements Gathering/Analysis
local
bottom up
fundamental scope principle
44. Typically a variable that determines whether or not the loop executes or not.
control
NOT
numeric
OR
45. Test each module in isolation and test the modules all together and make sure every line of code is tested.
Modular
testing
Scope Rule 2
system testing
46. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.
Scope Rule 3
top down
Selection
statement
47. Parameters act like _____ variables within a module
top down
local
pass by reference
declaration
48. 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.
Scope Rule 3
While-Do
software design
bottom up
49. A logical circuit which is used to add two binary digits.
selection structure
Actual parameters
binary half adder
single
50. Variable When a variable is declared under a procedure it is a _____ variable?
statement
Local
Selection
OR