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 linked list with a single node.






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






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






4. Using the output from one function call as the input to another.






5. A name that refers to a value.






6. A kind of data structure that can contain data of any type.






7. A set of instructions for solving a class of problems by a mechanical and unintelligent process.






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






9. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






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






12. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






13. To represent one set of values using another set of values by constructing a mapping between them.






14. Another name for a runtime error.






15. A way of developing programs starting with a prototype and gradually testing and improving it.






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






17. An assertion that should be true of an object at all times (except perhaps while the object is being modified).






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






19. An assertion that must be true in order for a method to work correctly.






20. To read a string of characters or tokens and analyze its grammatical structure.






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






22. The process of calling the function that is currently executing.






23. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






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






25. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






26. An object that belongs to a class.






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






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






29. Part of a program that can never be executed - often because it appears after a return statement.






30. An item of data contained in a node.






31. A thing to which a variable can refer.






32. A visual cue that tells the user to input data.






33. A tree in which each node refers to zero or one or two dependent nodes.






34. To signal an exception using the raise statement.






35. A program (or the person who wrote it) that uses an ADT.






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






37. An error in a program that makes it impossible to parse






38. It prevents a compiler from compiling.






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






40. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






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






42. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






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






44. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






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






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






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






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






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






50. An expression that is either true or false.