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






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






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






4. The statements inside a loop.






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






6. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.






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






8. Another name for a runtime error.






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






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






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






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






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






14. The ability to define a new class that is a modified version of a previously defined class.






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






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






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






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






19. The meaning of a program.






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






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






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






23. A queueing policy in which the first member to arrive is the first to be removed.






24. A character that is used to separate tokens such as punctuation in a natural language.






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






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






27. A special character that causes the cursor to move to the beginning of the next line.






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






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






30. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






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






32. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






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






34. A name that refers to a value.






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






36. A branch of the conditional statement in a recursive function that does not result in a recursive call.






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






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






39. A combination of variables and operators and values that represents a single result value.






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






41. The structure of a program.






42. A statement that creates a new function specifying its name and parameters and the statements it executes.






43. The set of nodes equidistant from the root.






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






45. A user-defined compound type. A class can also be thought of as a template for the objects that are instances of it.






46. A language that provides features - such as user-defined classes and inheritance - that facilitate object-oriented programming.






47. A property of a program that can run on more than one kind of computer.






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






49. Any of the characters that move the cursor without printing visible characters. The constant string.whitespace contains all the white-space characters.






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