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. Another name for a runtime error.






2. An explicit statement that takes a value of one type and computes a corresponding value of another type.






3. An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.






4. One of the values in a list (or other sequence). The bracket operator selects elements of a list.






5. A function that yields a return value.






6. A general process for solving a category of problems.






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






8. A way to traverse a tree - visiting the children of each node before the node itself.






9. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






10. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






11. Any one of the languages that people speak that evolved naturally.






12. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






13. An error in a program.






14. A sequence of one or more characters used to specify the boundary between separate parts of text.






15. An operation whose runtime is a linear function of the size of the data structure.






16. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.






17. A special character that causes the cursor to move to the next tab stop on the current line.






18. A variable in the sys module which stores a list of command line arguments passed to a program at run time.






19. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






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






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






22. Temporary storage of a precomputed value to avoid redundant computation.






23. A signal such as a keyboard press or mouse click or message from another program.






24. Code that satisfies the syntactic and semantic requirements of an interface.






25. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.






26. A name used inside a function to refer to the value passed as an argument.






27. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.






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






29. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.






30. A statement that causes the current iteration of a loop to end.






31. Any of the data types that consist of an ordered set of elements with each element identified by an index.






32. To simplify an expression by performing the operations in order to yield a single value.






33. An ADT that defines the operations one might perform on a priority queue.






34. A distinct method of operation within a computer program.






35. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.






36. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






37. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






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






39. Making more than one assignment to the same variable during the execution of a program.






40. The class from which a child class inherits.






41. A programming construct that waits for events and processes them.






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






43. The dot operator ( .) permits access to attributes and functions of a module.






44. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.






45. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






46. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






47. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






48. A loop in which the terminating condition is never satisfied.






49. To signal an exception using the raise statement.






50. Generalization by reducing the information content of a concept.