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 rules that determine which member of a queue is removed next.






2. A loop inside the body of another loop.






3. Code that is used during program development but is not part of the final version.






4. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






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






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






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






8. An assertion that should be true of an object at all times (except perhaps while the object is being modified).






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






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






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






12. Any of the data types that consist of an ordered set of elements with each element identified by an index.






13. A branch of the conditional statement in a recursive function that does not result in a recursive call.






14. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






15. A new class created by inheriting from an existing class; also called a subclass.






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






17. An explicit statement that takes a value of one type and computes a corresponding value of another type.






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






19. A linked list with a single node.






20. A compound data type whose elements cannot be assigned new values.






21. A program that translates higher level programming languages into basic instructions the CPU can understand.






22. A compound data type that is often used to model a thing or concept in the real world.






23. To create a new object that has the same value as an existing object.






24. A statement that creates a new function specifying its name and parameters and the statements it executes.






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






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






27. A box in a stack diagram that represents a function call. It contains the local variables and parameters of the function.






28. An error in a program.






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






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






31. The process of finding and removing any of the three kinds of programming errors.






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






33. A programming language that is designed to be easy for humans to read and write.






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






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






36. Repeated execution of a set of programming statements.






37. To simplify an expression by performing the operations in order to yield a single value.






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






39. An error that does not occur until the program has started to execute but that prevents the program from continuing.






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






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






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






43. A queueing policy in which each member has a priority determined by external factors. The member with the highest priority is the first to be removed.






44. One of the nodes referred to by a node.






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






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






47. A visual cue that tells the user to input data.






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






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






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