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 prevent an exception from terminating a program using the try and except statements.






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






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






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






5. To create an instance of a class.






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






7. A special method that is invoked automatically when a new object is created and that initializes the object's attributes.






8. A statement that assigns a value to a name (variable).






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






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






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






12. A variable that is defined inside a class definition but outside any method. These are accessible from any method in the class and are shared by all instances of the class.






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






14. Having no specific pattern. Unpredictable.






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






16. A variable or value used to select a member of an ordered set - such as a character from a string.






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






18. An operation defined in linear algebra that multiplies two Points and yields a numeric value.






19. A character that is used to separate tokens such as punctuation in a natural language.






20. Decrease by 1.






21. An implementation of a queue using a linked list.






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






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






24. The value given to an optional parameter if no argument for it is provided in the function call.






25. An item of data contained in a node.






26. A style of program design in which the majority of functions are pure.






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






28. A function that returns a boolean value.






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






30. A data type (usually a collection of objects) that is defined by a set of operations but that can be implemented in a variety of ways.






31. A process for developing a program.






32. A loop inside the body of another loop.






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






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






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






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






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






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






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






40. Multiple variables that contain references to the same object.






41. An operation that divides one integer by another and yields an integer. Integer division yields only the whole number of times that the numerator is divisible by the denominator and discards any remainder.






42. An error in a program.






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






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






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






46. A program in a high-level language before being compiled.






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






48. An expression in parentheses that acts as a single operand in a larger expression.






49. A function that yields a return value.






50. A group of consecutive statements with the same indentation.