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