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






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






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






4. An error that occurs at runtime.






5. A program stored in a file (usually one that will be interpreted).






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






7. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






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






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






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






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






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






13. A string displayed by a command line interface indicating that commands can be entered.






14. An ADT that performs the operations one might perform on a queue.






15. Generalization by reducing the information content of a concept.






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






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






18. It prevents a compiler from compiling.






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






20. An operation whose runtime does not depend on the size of the data structure.






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






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






23. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






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






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






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






27. A list that is an element of another list.






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






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






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






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






32. An error in a program.






33. A file that contains printable characters organized into lines separated by newline characters.






34. To simplify an expression by performing the operations in order to yield a single value.






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






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






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. Using the output from one function call as the input to another.






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






40. A name that refers to a value.






41. A name used inside a function to refer to the value passed as an argument.






42. A data type which can be modified.






43. An operation whose runtime is a linear function of the size of the data structure.






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






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






46. A variable or value used to select a member of an ordered set - such as a character from a string.






47. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.






48. A variable used to store an intermediate value in a complex calculation.






49. To signal an exception using the raise statement.






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