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. When true the if executes the body which is a _________ statement.
pass by reference
single
Scope Rule 3
independent
2. Deploy the software and fix bugs and modify to satisfy changing requirements.
boolean
fundamental scope principle
call
deployment/maintenance
3. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.
Actual parameters
single
simple
if-then-else
4. Breaking things into modules.
procedural abstraction
Character
if
single
5. True and False are the two _____ constants
system testing
boolean
call
compound
6. ______ design starts by identifying tasks at the bottom level and then combine them to solve the main problem.
definition
bottom up
Declaration
if-then-else
7. A logical circuit which is used to add two binary digits.
Selection
control
implementation
binary half adder
8. Local variables have _______ kind of scope
Character
testing
numeric
limited
9. 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.
If
Actual parameters
While-Do
trace tables
10. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.
procedural abstraction
Repeat-Until
if-else
variable parameters
11. In Pascal Programs are executed one ______ at a time.
Character
statement
numeric
OR
12. The creation (write) of the code.
stack frame
implementation
Scope Rule 3
Sequence
13. Break system into manageable units or modules.
Formal parameters
system testing
software design
call
14. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.
pass by value
implementation
Scope Rule 1
Requirements Gathering/Analysis
15. 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.
definition
Selection
if
infinite loops
16. _______ design starts with high level idea of a solution and successively refine it. It favors hierarchial organization.
Else
Formal parameters
top down
trace tables
17. _______ boolean expressions are formed by combining boolean expressions using the boolean operators (NOT - AND- OR).
if
OR
Actual parameters
compound
18. The scope of an entity is the program or subprogram in which it is declared.
Requirements Gathering/Analysis
fundamental scope principle
Character
system testing
19. 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 value
Scope Rule 1
Repeat-Until
Procedures
20. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.
parameters
procedural abstraction
If
pass by reference
21. They can store values passed on to them but cannot return any values.
variable parameters
nested
If-Then
value parameters
22. Where the statements for the module are coded.
fundamental scope principle
Sequence
definition
Formal
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
AND
infinite loops
relational operators
24. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.
procedural abstraction
selection structure
compound
infinite loops
25. This is where the module is invoked or called.
Sequence
variable parameters
call
Scope Rule 1
26. The order of operations of the boolean operators from first to last is: NOT - AND - _____
If
OR
local
compound
27. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.
Formal parameters
Selection
variable parameters
Procedures
28. ________ design is the key to the ability to create large systems.
Modular
compound
implementation
Selection
29. The stucture of a procedure: Heading - ______ - Statement
Requirements Gathering/Analysis
Local
fundamental scope principle
Declaration
30. The testing of the complete program to determine the overall system functions.
XOR
single
system testing
OR
31. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.
OR
not
If
deployment/maintenance
32. Boolean expressions can be simple or _______
If-Then
compound
Character
Requirements Gathering/Analysis
33. Modules are defined in the ______ part of a program - under the constant.
If-Then
integration testing
compound
declaration
34. Modulars are ________ from one another
While-Do
If-Then
single
independent
35. ______ Decision Making checks if a particular condition is true.
definition
independent
If-Then
NOT
36. 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.
definition
If-Then
variable parameters
Scope Rule 2
37. Variable When a variable is declared under a procedure it is a _____ variable?
Else
Local
if-else
If-Then
38. 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.
Character
XOR
Scope Rule 3
stack frame
39. <> is the symbol for ___ equal to
statement
variable parameters
not
pass by value
40. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)
If-Then
binary half adder
NOT
Procedures
41. The space on the task which holds the formal parameters local variables and the return value.
Procedures
stack frame
compound
compound statement
42. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR
XOR
Character
statement
local
43. It encapsulates a sequence of statements as a single statement. Has a begin and end statement.
Formal parameters
compound statement
Procedures
call
44. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant
Character
infinite loops
Scope Rule 1
deployment/maintenance
45. _____ error happens when the type and number of parameters does not match?
local
compound
if
compilation
46. An item declared within a procedure or function is not accessible outside that procedure or function.
local
compound statement
Scope Rule 1
Declaration
47. 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).
numeric
binary half adder
if-else
Called
48. The three categories for a program structure are: ____ - Branching/Selection - Looping/Iteration
Sequence
binary half adder
Scope Rule 1
variable parameters
49. A parameter value that is used in a function call or in a message sent to an object.
Actual parameters
value parameters
relational operators
XOR
50. Test each module in isolation and test the modules all together and make sure every line of code is tested.
While-Do
independent
infinite loops
testing