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 style of program design in which the majority of functions are pure.






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






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






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. An assignment to all of the elements in a tuple using a single assignment statement. Useful for swapping values.






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






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






8. A way to traverse a tree - visiting each node before its children.






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






10. An invisible marker that keeps track of where the next character will be printed.






11. An explicit statement that takes a value of one type and computes a corresponding value of another type.






12. The boolean expression in a conditional statement that determines which branch is executed.






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






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






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






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






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






18. A name that refers to a value.






19. Making more than one assignment to the same variable during the execution of a program.






20. A name given to a variable.






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






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






23. Nodes that share a common parent.






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






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






26. A set of characters that are treated as a unit for purposes of parsing such as the words in a natural language.






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






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






29. To signal an exception using the raise statement.






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






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






32. An object that belongs to a class.






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






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






35. To execute a program in a high-level language by translating it one line at a time.






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






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






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






39. Any one of the languages that people have designed for specific purposes - such as representing mathematical ideas or computer programs; all programming languages are formal languages.






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






41. A statement or group of statements that execute repeatedly until a terminating condition is satisfied.






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






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






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






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






46. Function-like attribute of an object. Methods are invoked (called) on an object using the dot operator.






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






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






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






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