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