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. An organization of data for the purpose of making it easier to use.






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






3. A function that calls itself recursively without ever reaching the base case - ultimately causes a runtime error.






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






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






6. To signal an exception using the raise statement.






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






8. A name used inside a function to refer to the value passed as an argument.






9. A data type in which the elements can be modified. It is a compound type - e.g. lists.






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






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






12. The class from which a child class inherits.






13. The value provided as the result of a function call.






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






15. An operation whose runtime is a linear function of the size of the data structure.






16. A bottom-most node in a tree with no children.






17. A library is a collection of software used as tools in the development of other software.






18. An ADT that performs the operations one might perform on a queue.






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






20. Memory which requires an electrical current to maintain state. Information stored is lost when the computer is turned off.






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






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






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






24. An automatic procedure used to validate that individual units of code are working properly.






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






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






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






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






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






30. One of the operators that combines boolean expressions: and or and not.






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






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






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






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






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






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






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






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






39. Nodes that share a common parent.






40. A property of a program that can run on more than one kind of computer.






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






42. A signal such as a keyboard press or mouse click or message from another program.






43. A function that yields a return value.






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






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






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






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






48. A way of writing mathematical expressions with the operators between the operands.






49. An object that belongs to a class.






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