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. An implementation of a queue using a linked list.






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






3. One of the operators that combines boolean expressions: and or and not.






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






5. An error that occurs at runtime.






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






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






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






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






10. An error in a program that makes it do something other than what the programmer intended.






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






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






13. It prevents a compiler from compiling.






14. A bottom-most node in a tree with no children.






15. A linked list with a single node.






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






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






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






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






20. Repeated execution of a set of programming statements.






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






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






23. A compound data type that is often used to model a thing or concept in the real world.






24. A name given to a variable.






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






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






27. A group of consecutive statements with the same indentation.






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






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






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






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






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






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






34. A program in a high-level language before being compiled.






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






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






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






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






39. Multiple variables that contain references to the same object.






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






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






42. Decrease by 1.






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






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






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






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






47. A function that yields a return value.






48. The class from which a child class inherits.






49. An embedded reference used to link one object to another.






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