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 way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






2. The set of nodes equidistant from the root.






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






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






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






6. The set of rules governing the order in which expressions involving multiple operators and operands are evaluated.






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






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






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






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






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






12. A string displayed by a command line interface indicating that commands can be entered.






13. To iterate through the elements of a set performing a similar operation on each.






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






15. A value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.






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






17. A set of values. The type of a value determines how it can be used in expressions. So far the types you have seen are integers (type int) and floating-point numbers (type float) and strings (type str).






18. A variable used to store an intermediate value in a complex calculation.






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






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






21. A method that is not invoked directly by a caller but is used by another method to perform part of an operation.






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






23. The sequence of characters read into the command interpreter in a command line interface.






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






25. The statement in a recursive function with is a call to itself.






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






27. To represent one set of values using another set of values by constructing a mapping between them.






28. Temporary storage of a precomputed value to avoid redundant computation.






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






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






31. A loop inside the body of another loop.






32. An error in a program that makes it do something other than what the programmer intended.






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






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






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






36. A distinct method of operation within a computer program.






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






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






39. A data type which can be modified.






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






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






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






43. An element of a list - usually implemented as an object that contains a reference to another object of the same type.






44. The structure of a program.






45. An ADT that defines the operations one might perform on a priority queue.






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






47. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






48. A combination of variables and operators and values that represents a single result value.






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






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