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 follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






2. The structure of a program.






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






4. A name that refers to a value.






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






6. A named entity - usually stored on a hard drive or floppy disk or CD-ROM - that contains a stream of characters.






7. A linked list with a single node.






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






9. Making more than one assignment to the same variable during the execution of a program.






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






11. A bottom-most node in a tree with no children.






12. A function that yields a return value.






13. An automatic procedure used to validate that individual units of code are working properly.






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






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






16. A name used inside a function to refer to the value passed as an argument.






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






18. To create an instance of a class.






19. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.






20. A graphical representation of a stack of functions and their variables and the values to which they refer.






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






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






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






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






25. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






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






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






28. To join two strings end-to-end.






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






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






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






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






33. A special symbol that represents a simple computation like addition or multiplication or string concatenation.






34. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






35. The process of calling the function that is currently executing.






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






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






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






39. A function that changes one or more of the objects it receives as parameters. Most modifiers are void.






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






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






42. A data structure that implements a collection using a sequence of linked nodes.






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






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






45. To read a string of characters or tokens and analyze its grammatical structure.






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






47. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






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






49. The value provided as the result of a function call.






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