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