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