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