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. Part of a program that can never be executed - often because it appears after a return statement.






2. The meaning of a program.






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






4. A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a






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






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






7. A way to traverse a tree - visiting the left subtree and then the root and then the right subtree.






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






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






10. The set of operations that define an ADT.






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






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






13. A number or string (or other things to be named later) that can be stored in a variable or computed in an expression.






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






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






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






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






18. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






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






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






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






22. The set of nodes equidistant from the root.






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






24. The rules that determine which member of a queue is removed next.






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






26. A string constant on the first line of a function or module definition - they provide a convenient way to associate documentation with code.






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






28. A tree in which each node refers to zero or one or two dependent nodes.






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






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






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






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






33. A numerical value that does not change during the execution of a program.






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






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






36. Generalization by reducing the information content of a concept.






37. A way of writing mathematical expressions with the operators after the operands.






38. Another name for a runtime error.






39. A data type which can be modified.






40. An error that occurs at runtime.






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






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






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






44. A variable used in a loop to accumulate a series of values - such as by concatenating them onto a string or adding them to a running sum.






45. There are exactly two boolean values: True and False.






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






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






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






49. An intermediate language between source code and object code. Many modern languages first compile source code into byte code and then interpret the byte code with a program called a virtual machine.






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