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 escape character '' followed by one or more printable characters used to designate a nonprintable character.






2. A named collection of objects where each object is identified by an index.






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






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






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






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






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






8. Extending built-in operators ( + or - or * or > or < etc.) so that they work with user-defined types.






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






10. The structure of a program.






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






12. A function that yields a return value.






13. The class from which a child class inherits.






14. An error in a program.






15. The sequence of characters read into the command interpreter in a command line interface.






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






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






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






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






20. A variable used to store an intermediate value in a complex calculation.






21. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






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






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






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






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






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






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






28. A program in a high-level language before being compiled.






29. The set of nodes equidistant from the root.






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






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






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






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






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






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






36. A statement that controls the flow of execution depending on some condition.






37. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.






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






39. A data type in which the elements can be modified. It is a compound type - e.g. lists.






40. The meaning of a program.






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






42. An expression in parentheses that acts as a single operand in a larger expression.






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






44. Any one of the languages that people speak that evolved naturally.






45. Repeated execution of a set of programming statements.






46. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






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






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






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






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