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