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 function that yields a return value.






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






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






4. A graphical representation of a stack of functions and their variables and the values to which they refer.






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






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






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






8. An ordered set of objects waiting for a service of some kind.






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






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






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






12. Any of the data types that consist of an ordered set of elements with each element identified by an index.






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






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






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






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






17. The set of nodes equidistant from the root.






18. A compound data type whose elements cannot be assigned new values.






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






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






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






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






23. A queueing policy in which the first member to arrive is the first to be removed.






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






25. a sequence of instructions that specifies to a computer actions and computations to be performed.






26. The code (or the person who wrote it) that implements an ADT.






27. A name that refers to a value.






28. A variable defined inside a module - accessed by using the dot operator ( .).






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






30. A way of developing programs that involves high-level insight into the problem and more planning than incremental development or prototype development.






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






32. An integer variable or value that indicates an element of a list.






33. One of the pairs of items in a dictionary. Values are looked up in a dictionary by key.






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






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






36. A value passed to a program along with the program's invocation at the command prompt of a command line interface (CLI).






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






38. A program development plan intended to avoid debugging by adding and testing only a small amount of code at a time.






39. A numerical result that is too large to be represented in a numerical format.






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






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






42. A statement that controls the flow of execution depending on some condition.






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






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






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






46. The node that refers to a given node.






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






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






49. An error in a program.






50. A character or string used to indicate where a string should be split.