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 new class created by inheriting from an existing class; also called a subclass.






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






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






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






5. The process of formulating a problem and finding a solution and expressing the solution.






6. The sequential accessing of each element in a list.






7. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






8. To execute a program in a high-level language by translating it one line at a time.






9. A reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.






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






11. One of the operators that compares two values: == or != or > or < or >= and <=.






12. The structure of a program.






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






14. The process of finding and removing any of the three kinds of programming errors.






15. One of the possible paths of the flow of execution determined by conditional execution.






16. An automatic procedure used to validate that individual units of code are working properly.






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






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






19. A data type which can be modified.






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






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






22. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






23. To create a new object that has the same value as an existing object.






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






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






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






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






28. A function which changes its arguments inside the function body. Only mutable types can be changed by modifiers.






29. Both as a noun and as a verb - it means to increase by 1.






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






31. Decrease by 1.






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






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






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






35. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






36. A variable defined inside a module - accessed by using the dot operator ( .).






37. An ADT that defines the operations one might perform on a priority queue.






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






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






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






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






42. A style of program design in which the majority of functions are pure.






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






44. A thing to which a variable can refer.






45. Temporary storage of a precomputed value to avoid redundant computation.






46. A special symbol that represents a simple computation like addition or multiplication or string concatenation.






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






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






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






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