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. Deploy the software and fix bugs and modify to satisfy changing requirements.
candidate
statement
simple
deployment/maintenance
2. <> is the symbol for ___ equal to
Called
not
Procedures
trace tables
3. A parameter that is specified as part of a function definition.
compound
Formal parameters
system testing
Modular
4. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.
selection structure
if-then-else
if
limited
5. The scope of an entity is the program or subprogram in which it is declared.
Scope Rule 3
If-Then
variable parameters
fundamental scope principle
6. _______ boolean expressions are formed by combining boolean expressions using the boolean operators (NOT - AND- OR).
local
compound
procedural abstraction
statement
7. They can both receive and return values.
variable parameters
simple
While-Do
declaration
8. 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
Character
implementation
single
9. An ____ statement evaluates a Boolean expression. The code will only be executed when the expression evaluates to true.
if
top down
Selection
Local
10. A parameter value that is used in a function call or in a message sent to an object.
implementation
variable parameters
Formal parameters
Actual parameters
11. A body of ______ consists of multiple statements. The statements do have a semicolon - including the end (from the begin and end).
compound
stack frame
If-Then
pass by value
12. A logical circuit which is used to add two binary digits.
binary half adder
Character
Actual parameters
selection structure
13. 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.
compound
Scope Rule 3
independent
candidate
14. Modules can be called anywhere in the program - but must be done after their ______.
definition
compound
relational operators
numeric
15. Typically a variable that determines whether or not the loop executes or not.
compound
control
selection structure
testing
16. They can store values passed on to them but cannot return any values.
value parameters
infinite loops
independent
NOT
17. Modulars are ________ from one another
sequential structure
pass by value
binary half adder
independent
18. ______ design starts by identifying tasks at the bottom level and then combine them to solve the main problem.
parameters
nested
bottom up
compilation
19. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)
If-Then
bottom up
implementation
NOT
20. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant
pass by value
deployment/maintenance
not
Character
21. It encapsulates a sequence of statements as a single statement. Has a begin and end statement.
compound statement
declaration
compound
fundamental scope principle
22. 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
trace tables
nested
Scope Rule 2
definition
23. The two types of parameters are: ______ and Actual.
declaration
stack frame
compilation
Formal
24. 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).
Modular
if-else
If
XOR
25. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.
Selection
control
Formal
Formal parameters
26. Test each module in isolation and test the modules all together and make sure every line of code is tested.
testing
compound statement
call
Local
27. This is where the module is invoked or called.
Local
Sequence
limited
call
28. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
pass by value
implementation
bottom up
Repeat-Until
29. A ________ statement is what follows the 'then' in an (if-then statement) and precedes the first semi-colon.
compound
Formal
Character
simple
30. The space on the task which holds the formal parameters local variables and the return value.
stack frame
bottom up
XOR
Scope Rule 2
31. Where the statements for the module are coded.
if
if-then-else
compound
definition
32. In a multiple ____ statement (Non-Exclusive Condition) any or all or none of the conditions may be true - they are independent.
If
Scope Rule 3
Character
parameters
33. 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.
software design
If-Then
not
integration testing
34. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.
integration testing
if-then-else
OR
control
35. ________ design is the key to the ability to create large systems.
Formal parameters
system testing
Called
Modular
36. 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.
procedural abstraction
compound
AND
relational operators
37. Local variables have _______ kind of scope
limited
declaration
Scope Rule 2
top down
38. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.
integration testing
Scope Rule 2
Scope Rule 3
Requirements Gathering/Analysis
39. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.
system testing
variable parameters
Scope Rule 2
sequential structure
40. All modules must be _____ and they can call other modules.
parameters
infinite loops
call
Called
41. A ______ operand cannot be applied to an AND boolean operator
numeric
If
compound
if
42. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.
independent
nested
Formal
Procedures
43. Variable When a variable is declared under a procedure it is a _____ variable?
system testing
Local
AND
If-Then
44. 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
Scope Rule 3
fundamental scope principle
If-Then
45. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.
definition
Selection
stack frame
OR
46. Parameters act like _____ variables within a module
compound
AND
Sequence
local
47. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
declaration
value parameters
Procedures
XOR
48. The stucture of a procedure: Heading - ______ - Statement
pass by reference
Declaration
Scope Rule 1
definition
49. A nested decision making statement can also have a ____ in the inner statement.
local
AND
Else
value parameters
50. 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-then-else
control
if
Scope Rule 2