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 string displayed by a command line interface indicating that commands can be entered.






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






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






4. A statement which makes the objects contained in a module available for use within another module.






5. A reference to a list node can be treated as a single object or as the first in a list of nodes.






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






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






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






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






10. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






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






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






13. A function which has no side effects. It only makes changes to the calling program through its return values.






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






15. A character or string used to indicate where a string should be split.






16. The node that refers to a given node.






17. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.






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






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






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






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






22. A named collection of files - also called a folder.






23. Repeated execution of a set of programming statements.






24. An object that belongs to a class.






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






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






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






28. The meaning of a program.






29. A property of a program that can run on more than one kind of computer.






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






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






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






33. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






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






35. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






36. The class from which a child class inherits.






37. A set of values. The type of a value determines how it can be used in expressions. So far the types you have seen are integers (type int) and floating-point numbers (type float) and strings (type str).






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






39. A programming language that is designed to be easy for humans to read and write.






40. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






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






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






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






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






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






46. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






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






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






49. The statement in a recursive function with is a call to itself.






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