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. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






2. One of the nodes referred to by a node.






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






4. Nodes that share a common parent.






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






6. An expression that is either true or false.






7. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






8. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






9. The ability to define a new class that is a modified version of a previously defined class.






10. Another name for a runtime error.






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






12. The set of nodes equidistant from the root.






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






14. Repeated execution of a set of programming statements.






15. A collection of key-value pairs that maps from keys to values.






16. A program stored in a file (usually one that will be interpreted).






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






18. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).






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






20. A numerical result that is too large to be represented in a numerical format.






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






22. The structure of a program.






23. Having no specific pattern. Unpredictable.






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






25. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






26. The name and location of a file within a file system.






27. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






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






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






30. The class from which a child class inherits.






31. A variable used to count something - usually initialized to zero and incremented in the body of a loop.






32. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.






33. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.






34. The meaning of a program.






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






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






37. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






38. The boolean expression in a conditional statement that determines which branch is executed.






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






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






41. A linked list with a single node.






42. A numerical value that does not change during the execution of a program.






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






44. A queueing policy in which the first member to arrive is the first to be removed.






45. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






46. An ordered set of objects waiting for a service of some kind.






47. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.






48. A way of writing a mathematical expression with each operator appearing before its operands.






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






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