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 divide a large complex program into components (like functions) and isolate the components from each other (by using local variables - for example).






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






3. The statements inside a loop.






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






5. A style of programming in which data and the operations that manipulate it are organized into classes and methods.






6. An error in a program.






7. To execute a program in a high-level language by translating it one line at a time.






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






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






10. One of the values on which an operator operates.






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






12. An item of data contained in a node.






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






14. A variable used as part of the terminating condition of a loop.






15. An assertion that must be true in order for a method to work correctly.






16. To examine a program and analyze the syntactic structure.






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






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






19. A name that refers to a value.






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






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






22. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






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






24. One of the named data items that makes up an instance.






25. A program stored in a file (usually one that will be interpreted).






26. A function that yields a return value.






27. To create an instance of a class.






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






29. A way of developing programs starting with a prototype and gradually testing and improving it.






30. Having no specific pattern. Unpredictable.






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






32. A named collection of files - also called a folder.






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






34. A data type which can be modified.






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






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






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






38. It prevents a compiler from compiling.






39. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.






40. A program (or the person who wrote it) that uses an ADT.






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






42. A graphical representation of a set of variables and the values to which they refer.






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






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






45. A name given to a variable.






46. Decrease by 1.






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






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






49. Given any real numbers a and b exactly one of the following relations holds: a < b or a > b or a = b. Thus when you can establish that two of the relations are false you can assume the remaining one is true. What is it called?






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