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 operation whose runtime is a linear function of the size of the data structure.






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






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






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






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






6. One of the basic elements of the syntactic structure of a program - analogous to a word in a natural language.






7. A data type which can be modified.






8. A general process for solving a category of problems.






9. To iterate through the elements of a set performing a similar operation on each.






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






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






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






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






14. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






15. To create an instance of a class.






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






17. An expression that is either true or false.






18. A data type that contains a sequence of elements of any type - like a list but is immutable. Can be used wherever an immutable type is required.






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






20. A list of the functions that are executing - printed when a runtime error occurs. Also commonly refered to as a stack trace since it lists the functions in the order in which they are stored in the runtime stack.






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






22. Decrease by 1.






23. A way of writing mathematical expressions with the operators between the operands.






24. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






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






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






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






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






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






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






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






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






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






34. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






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






36. A reference to a list node can be treated as a single object or as the first in a list of nodes.






37. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






38. A statement which makes the objects contained in a module available for use within another module.






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






40. A loop inside the body of another loop.






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






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






43. A function that returns a boolean value.






44. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






45. To signal an exception using the raise statement.






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






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






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






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






50. To divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).