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 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
if
trace tables
top down
2. Typically a variable that determines whether or not the loop executes or not.
statement
control
single
pass by reference
3. The scope of an entity is the program or subprogram in which it is declared.
fundamental scope principle
binary half adder
bottom up
candidate
4. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)
Sequence
OR
call
NOT
5. Where the statements for the module are coded.
Formal parameters
OR
definition
bottom up
6. This is where the module is invoked or called.
software design
compound statement
compound
call
7. 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
if
not
AND
8. Less than - equal to - not equal to etc. are examples of _________
statement
compound
relational operators
top down
9. A _________ statement is what follows the 'then' in an (if-then statement) and is enclosed within the begin-end pair.
selection structure
NOT
compound
top down
10. In Pascal Programs are executed one ______ at a time.
if
Formal parameters
definition
statement
11. Parameters act like _____ variables within a module
software design
Modular
local
Requirements Gathering/Analysis
12. 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
if-then-else
if-else
While-Do
13. ________ design is the key to the ability to create large systems.
binary half adder
candidate
Modular
Else
14. The stucture of a procedure: Heading - ______ - Statement
Repeat-Until
call
compound
Declaration
15. Break system into manageable units or modules.
procedural abstraction
OR
implementation
software design
16. Modulars are ________ from one another
definition
pass by reference
If-Then
independent
17. A ______ operand cannot be applied to an AND boolean operator
declaration
numeric
call
sequential structure
18. A logical circuit which is used to add two binary digits.
Local
nested
numeric
binary half adder
19. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.
system testing
OR
parameters
Character
20. Refers to the execution of a sequence of statements in the order in which they appear so that each statement is executed exactly once.
Requirements Gathering/Analysis
compound
selection structure
sequential structure
21. 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 reference
independent
numeric
if
22. Breaking things into modules.
if-else
procedural abstraction
trace tables
compound statement
23. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant
parameters
Character
software design
control
24. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.
Procedures
if-then-else
software design
candidate
25. The order of operations of the boolean operators from first to last is: NOT - AND - _____
top down
OR
independent
If
26. 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.
Procedures
OR
parameters
Local
27. The creation (write) of the code.
call
implementation
control
local
28. Variable When a variable is declared under a procedure it is a _____ variable?
Local
definition
trace tables
Scope Rule 3
29. _______ design starts with high level idea of a solution and successively refine it. It favors hierarchial organization.
integration testing
fundamental scope principle
top down
single
30. Modules can be called anywhere in the program - but must be done after their ______.
Formal parameters
definition
XOR
single
31. It encapsulates a sequence of statements as a single statement. Has a begin and end statement.
Formal
Else
Repeat-Until
compound statement
32. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.
Procedures
relational operators
top down
Local
33. A nested decision making statement can also have a ____ in the inner statement.
Actual parameters
Else
Modular
compound
34. When true the if executes the body which is a _________ statement.
independent
single
compound
Else
35. All modules must be _____ and they can call other modules.
Repeat-Until
independent
Called
testing
36. The space on the task which holds the formal parameters local variables and the return value.
parameters
definition
Procedures
stack frame
37. A ________ statement is what follows the 'then' in an (if-then statement) and precedes the first semi-colon.
Requirements Gathering/Analysis
simple
if
fundamental scope principle
38. 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.
simple
AND
deployment/maintenance
Actual parameters
39. _____ error happens when the type and number of parameters does not match?
compilation
nested
compound
simple
40. ______ Decision Making checks if a particular condition is true.
Formal
If-Then
parameters
procedural abstraction
41. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.
procedural abstraction
selection structure
definition
Actual parameters
42. The three logical flows that govern a structured program are: Sequence - ______ - and Repetition.
compilation
binary half adder
Selection
procedural abstraction
43. A parameter that is specified as part of a function definition.
Scope Rule 2
parameters
if
Formal parameters
44. Local variables have _______ kind of scope
Formal parameters
If
variable parameters
limited
45. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
Selection
system testing
XOR
Requirements Gathering/Analysis
46. 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.
Actual parameters
Selection
sequential structure
Scope Rule 3
47. Loops that never end because the stopping/exit condition is never met.
NOT
If-Then
infinite loops
Declaration
48. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.
Requirements Gathering/Analysis
integration testing
local
bottom up
49. Used to trace the execution of an algorithm.
trace tables
testing
Scope Rule 2
selection structure
50. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
stack frame
definition
numeric
Repeat-Until