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 step-by-step process for solving a category of problems.






2. The topmost node in a tree with no parent.






3. A data type which can be modified.






4. An error that does not occur until the program has started to execute but that prevents the program from continuing.






5. To execute a program in a high-level language by translating it one line at a time.






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






7. A variable defined inside a function. A local variable can only be used inside its function.






8. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.






9. The node that refers to a given node.






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






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






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






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






14. The output of the compiler after it translates the program.






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






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






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






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






19. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






20. A loop inside the body of another loop.






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






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






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






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






25. A conditional branch with more than two possible flows of execution.






26. A thing to which a variable can refer.






27. A statement that creates a new function specifying its name and parameters and the statements it executes.






28. A graphical representation of a stack of functions and their variables and the values to which they refer.






29. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






30. To prevent an exception from terminating a program using the try and except statements.






31. The sequence of characters read into the command interpreter in a command line interface.






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






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






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






35. An item of data contained in a node.






36. 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?






37. Use of the dot operator '.' to access functions inside a module.






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






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






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






41. The sequential accessing of each element in a list.






42. a sequence of instructions that specifies to a computer actions and computations to be performed.






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






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






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






46. An organization of data for the purpose of making it easier to use.






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






48. One of the values on which an operator operates.






49. An invisible marker that keeps track of where the next character will be printed.






50. An integer variable or value that indicates an element of a list.