Test your basic knowledge |

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. To examine a program and analyze the syntactic structure.






2. Multiple variables that contain references to the same object.






3. The value provided as the result of a function call.






4. The block of statements in a compound statement that follows the header.






5. An error that occurs at runtime.






6. A variable or value used to select a member of an ordered set - such as a character from a string.






7. A new class created by inheriting from an existing class; also called a subclass.






8. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






9. Code that is used during program development but is not part of the final version.






10. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






11. A bottom-most node in a tree with no children.






12. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.






13. A compound data type whose elements cannot be assigned new values.






14. To signal an exception using the raise statement.






15. A way to traverse a tree - visiting each node before its children.






16. A character that is used to separate tokens such as punctuation in a natural language.






17. To join two strings end-to-end.






18. Both as a noun and as a verb - it means to increase by 1.






19. The node that refers to a given node.






20. A program in a high-level language before being compiled.






21. A statement that assigns a value to a name (variable).






22. A library is a collection of software used as tools in the development of other software.






23. One of the named data items that makes up an instance.






24. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






25. A data type in which the elements can be modified. It is a compound type - e.g. lists.






26. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






27. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






28. A variable used to store an intermediate value in a complex calculation.






29. A recursive call that occurs as the last statement (at the tail) of a function definition.






30. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.






31. A data type in which the values are made up of components or elements that are themselves values.






32. A logical error which stops a program from performing.






33. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






34. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.






35. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.






36. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.






37. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






38. A string displayed by a command line interface indicating that commands can be entered.






39. To iterate through the elements of a set performing a similar operation on each.






40. A data type comprised of a collection of keys and associated values.






41. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






42. An error in a program that makes it do something other than what the programmer intended.






43. The rules that determine which member of a queue is removed next.






44. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






45. A step-by-step process for solving a category of problems.






46. The set of nodes equidistant from the root.






47. A group of consecutive statements with the same indentation.






48. There are exactly two boolean values: True and False.






49. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.






50. Nodes that share a common parent.