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. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






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






3. A thing to which a variable can refer.






4. A program (or the person who wrote it) that uses an ADT.






5. An error in a program.






6. An implementation of a queue using a linked list.






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






8. To examine a program and analyze the syntactic structure.






9. A recursive call that occurs as the last statement (at the tail) of a function definition.






10. Any of the data types that consist of an ordered set of elements with each element identified by an index.






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






12. Using the output from one function call as the input to another.






13. A variable defined inside a function. A local variable can only be used inside its function.






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






15. A variable in the sys module which stores a list of command line arguments passed to a program at run time.






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






17. Code that satisfies the syntactic and semantic requirements of an interface.






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






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






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






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






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






23. A data type which can be modified.






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






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






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






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






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






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






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






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






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






33. A distinct method of operation within a computer program.






34. A sequence of one or more characters used to specify the boundary between separate parts of text.






35. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






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






37. A linked list with a single node.






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






39. A program that translates higher level programming languages into basic instructions the CPU can understand.






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






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






42. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.






43. An operator that takes two operands.






44. Another name for a runtime error.






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






46. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.






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






48. Repeated execution of a set of programming statements.






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






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