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 defined inside a function. A local variable can only be used inside its function.






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






3. A process for developing a program.






4. A way to traverse a tree - visiting each node before its children.






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






6. A function that returns a boolean value.






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






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






9. A name given to a variable.






10. An object that belongs to a class.






11. The process of adding a function header and parameters to a sequence of program statements. This process is very useful whenever the program statements in question are going to be used multiple times.






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






13. A loop in which the terminating condition is never satisfied.






14. To signal an exception using the raise statement.






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






16. A part of a string (substring) specified by a range of indices.






17. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.






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






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






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






21. The block of statements in a compound statement that follows the header.






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. An error that occurs at runtime.






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






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






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






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






28. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






29. One of the values in a list (or other sequence). The bracket operator selects elements of a list.






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






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






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






33. A compound data type whose elements cannot be assigned new values.






34. One of the values on which an operator operates.






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






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






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






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






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






40. An item of data contained in a node.






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






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






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






44. A bottom-most node in a tree with no children.






45. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






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






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






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






49. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






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