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 of the operators that compares two values: == or != or > or < or >= and <=.






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






3. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






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






5. A situation in which two or more names in a given namespace cannot be unambiguously resolved.






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






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






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






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






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






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






12. Repeated execution of a set of programming statements.






13. A variable defined inside a function. A local variable can only be used inside its function.






14. An operation whose runtime is a linear function of the size of the data structure.






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






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






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






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






19. Code that satisfies the syntactic and semantic requirements of an interface.






20. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.






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






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






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






24. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






25. An error that occurs at runtime.






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






27. A function which has no side effects. It only makes changes to the calling program through its return values.






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






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






30. To replace something unnecessarily specific (like a constant value) with something appropriately general (like a variable or parameter). It makes code more versatile - more likely to be reused and sometimes even easier to write.






31. A data type comprised of a collection of keys and associated values.






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






33. The sequential accessing of each element in a list.






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






35. An item of data contained in a node.






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






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






38. The set of nodes equidistant from the root.






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






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






41. An embedded reference used to link one object to another.






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






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






44. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






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






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






47. Part of a program that can never be executed - often because it appears after a return statement.






48. An organization of data for the purpose of making it easier to use.






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






50. An error in a program.