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 to traverse a tree - visiting each node before its children.






2. A function that can operate on more than one type. If all the operations in a function can be applied to a type then the function can be applied to a type.






3. A data type which can be modified.






4. Decrease by 1.






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






6. A reference stored in an attribute of an object.






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






8. The structure of a program.






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






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






11. Calling one function from within the body of another or using the return value of one function as an argument to the call of another.






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






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






14. A way of writing a mathematical expression with each operator appearing before its operands.






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






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






17. A name that refers to a value.






18. Both as a noun and as a verb - it means to increase by 1.






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






20. Use of the dot operator '.' to access functions inside a module.






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






22. A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses.






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






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






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






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






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






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






29. A function that returns a boolean value.






30. The meaning of a program.






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






32. The ability to combine simple expressions and statements into compound statements and expressions in order to represent complex computations concisely.






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






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






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






36. Having no specific pattern. Unpredictable.






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






38. To join two strings end-to-end.






39. A statement that causes the current iteration of a loop to end.






40. Information in a program that is meant for other programmers (or anyone reading the source code) and has no effect on the execution of the program.






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






42. To signal an exception using the raise statement.






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






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






45. An object that belongs to a class.






46. A way to traverse a tree - visiting the children of each node before the node itself.






47. The interval between successive elements of a linear sequence. The third (and optional argument) to the range function is called the step size. If not specified it defaults to 1.






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






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






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