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. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






2. An operation whose runtime does not depend on the size of the data structure.






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






4. The statements inside a loop.






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






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






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






8. A reference stored in an attribute of an object.






9. A way of writing a mathematical expression with each operator appearing before its operands.






10. A name that refers to a value.






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






12. A change in the state of a program made by calling a function that is not a result of reading the return value from the function. Can only be produced by modifiers.






13. Using the output from one function call as the input to another.






14. A statement which makes the objects contained in a module available for use within another module.






15. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






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






17. The topmost node in a tree with no parent.






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






19. A data type which can be modified.






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






21. A process for developing a program.






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






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






24. An operator that takes two operands.






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






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






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






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






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






30. An object that belongs to a class.






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






32. A function that does not modify any of the objects it receives as parameters. Most pure functions are fruitful.






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






34. One of the operators that combines boolean expressions: and or and not.






35. A class definition that implements an ADT with method definitions that are invocations of other methods - sometimes with simple transformations. It does no significant work but it improves or standardizes the interface seen by the client.






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






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






38. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.






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






40. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






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






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






43. A thing to which a variable can refer.






44. A function that yields a return value.






45. A character or string used to indicate where a string should be split.






46. Another name for object code that is ready to be executed.






47. A set of instructions for solving a class of problems by a mechanical and unintelligent process.






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






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






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