Test your basic knowledge |

Pascal Programming

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.






2. Deploy the software and fix bugs and modify to satisfy changing requirements.






3. A _______ statement involves Decision making with two conditions (true or false). No semicolon after 'else.






4. Breaking things into modules.






5. True and False are the two _____ constants






6. ______ design starts by identifying tasks at the bottom level and then combine them to solve the main problem.






7. A logical circuit which is used to add two binary digits.






8. Local variables have _______ kind of scope






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.






10. The three statements in PASCAL that implement repetition structures:WHILE - FOR - ______.






11. In Pascal Programs are executed one ______ at a time.






12. The creation (write) of the code.






13. Break system into manageable units or modules.






14. The five activities in the lifetime of a piece of software? are _______ - Design - Implementation (Coding) - Testing - Deployment/Maintenance.






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.






16. _______ design starts with high level idea of a solution and successively refine it. It favors hierarchial organization.






17. _______ boolean expressions are formed by combining boolean expressions using the boolean operators (NOT - AND- OR).






18. The scope of an entity is the program or subprogram in which it is declared.






19. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.






20. A method of passing a variable to a program by making a copy of the variable and giving it to the called program.






21. They can store values passed on to them but cannot return any values.






22. Where the statements for the module are coded.






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.






24. It makes possible the selection of one of a number of alternative actions - which is implemented by an IF statement.






25. This is where the module is invoked or called.






26. The order of operations of the boolean operators from first to last is: NOT - AND - _____






27. The two types of parameters that can be implemented with PASCAL are: _______ and Functions.






28. ________ design is the key to the ability to create large systems.






29. The stucture of a procedure: Heading - ______ - Statement






30. The testing of the complete program to determine the overall system functions.






31. For an ____ Boolean Expression to be true if any Boolean expression evaluates to true then the entire expression evaluates to true.






32. Boolean expressions can be simple or _______






33. Modules are defined in the ______ part of a program - under the constant.






34. Modulars are ________ from one another






35. ______ Decision Making checks if a particular condition is true.






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.






37. Variable When a variable is declared under a procedure it is a _____ variable?






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.






39. <> is the symbol for ___ equal to






40. The order of operations from first to last are ___ - (* / DIV MOD AND) - (+ - OR) - (< > = <= >= <>)






41. The space on the task which holds the formal parameters local variables and the return value.






42. Some logical operators in Pascal are: OR - AND - ___ - NOT - NAND - NOR






43. It encapsulates a sequence of statements as a single statement. Has a begin and end statement.






44. The five types of operands allowed in Pascal are: Integer - Real - Boolean - _____ - Constant






45. _____ error happens when the type and number of parameters does not match?






46. An item declared within a procedure or function is not accessible outside that procedure or function.






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).






48. The three categories for a program structure are: ____ - Branching/Selection - Looping/Iteration






49. A parameter value that is used in a function call or in a message sent to an object.






50. Test each module in isolation and test the modules all together and make sure every line of code is tested.