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 sequence of instructions that specifies to a computer actions and computations to be performed.






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






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






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






5. An item of data contained in a node.






6. The statements inside a loop.






7. A data type which can be modified.






8. Another name for a runtime error.






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






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






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






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






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






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






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






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






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






18. To ________ a variable is to give it an initial value - usually in the context of multiple assignment.






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






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






21. An error in a program that makes it impossible to parse






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






23. To create an instance of a class.






24. An ordered set of objects waiting for a service of some kind.






25. The dot operator ( .) permits access to attributes and functions of a module.






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






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






28. Decrease by 1.






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






30. The boolean expression in a conditional statement that determines which branch is executed.






31. A software development practice which arrives at a desired feature through a series of small but iterative steps motivated by automated tests which are written first that express increasing refinements of the desired feature.






32. A data item that is mapped to a value in a dictionary. Used to look up values in a dictionary.






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






34. The output of the compiler after it translates the program.






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






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






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






38. An operator denoted with a percent sign ( %) - that works on integers and yields the remainder when one number is divided by another.






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






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






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






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






43. A way to traverse a tree - visiting each node before its children.






44. The set of nodes equidistant from the root.






45. A function that returns a boolean value.






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






47. A data type in which the values are made up of components or elements that are themselves values.






48. A programming construct that waits for events and processes them.






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






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