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 part of a string (substring) specified by a range of indices.






2. 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).






3. The rules that determine which member of a queue is removed next.






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






5. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






6. A function that returns a boolean value.






7. One of the named data items that makes up an instance.






8. The order in which statements are executed during a program run.






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






10. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






11. A character that is used to separate tokens such as punctuation in a natural language.






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






13. A named collection of objects where each object is identified by an index.






14. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






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






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






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






18. A branch of the conditional statement in a recursive function that does not result in a recursive call.






19. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






20. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.






21. A way of writing mathematical expressions with the operators after the operands.






22. The code (or the person who wrote it) that implements an ADT.






23. A method for naming and accessing and organizing files and the data they contain.






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






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






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






27. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






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






29. An operator that takes two operands.






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






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






32. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.






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






34. A data structure that implements a collection using a sequence of linked nodes.






35. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






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






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






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






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






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






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






42. A way to traverse a tree - visiting each node before its children.






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






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






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






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






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






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






49. The node that refers to a given node.






50. The class from which a child class inherits.