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