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. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






2. A linked list with a single node.






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. Repeated execution of a set of programming statements.






5. A statement that consists of two parts: header - which begins with a keyword determining the statement type and ends with a colon. body - containing one or more statements indented the same amount from the header.






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






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






8. The class from which a child class inherits.






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






10. A syntactic container providing a context for names so that the same name can reside in different namespaces without ambiguity.






11. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






12. A method for naming and accessing and organizing files and the data they contain.






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






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






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






16. Making more than one assignment to the same variable during the execution of a program.






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






18. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






19. Another name for object code that is ready to be executed.






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






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






22. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






23. The topmost node in a tree with no parent.






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






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






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






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






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






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






30. An error in a program.






31. A numerical value that does not change during the execution of a program.






32. A special character that causes the cursor to move to the next tab stop on the current line.






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






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






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






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






37. The statements inside a loop.






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






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






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






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






42. A way to traverse a tree - visiting the children of each node before the node itself.






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






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






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. The set of nodes equidistant from the root.






47. The meaning of a program.






48. A conditional branch with more than two possible flows of execution.






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






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