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