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. The order in which statements are executed during a program run.






2. A name that refers to a value.






3. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






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






5. The meaning of a program.






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






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






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






9. A loop inside the body of another loop.






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






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






12. Nodes that share a common parent.






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






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






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






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






17. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






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






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






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






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






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






23. A statement that causes the current iteration of a loop to end.






24. One program structure within another - such as a conditional statement inside a branch of another conditional statement.






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






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






27. A variable used as part of the terminating condition of a loop.






28. The structure of a program.






29. A graphical representation of a set of variables and the values to which they refer.






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






31. The process of formulating a problem and finding a solution and expressing the solution.






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






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






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






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






36. An error in a program that makes it do something other than what the programmer intended.






37. A numerical result that is too large to be represented in a numerical format.






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






39. It prevents a compiler from compiling.






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






41. The statement in a recursive function with is a call to itself.






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






43. A linked list with a single node.






44. To signal an exception using the raise statement.






45. Repeated execution of a set of programming statements.






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






47. Multiple variables that contain references to the same object.






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






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






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