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 file that contains printable characters organized into lines separated by newline characters.






2. The structure of a program.






3. An error in a program that makes it do something other than what the programmer intended.






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






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






6. An expression that is either true or false.






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






8. The second part of a compound statement. The body consists of a sequence of statements all indented the same amount from the beginning of the header.






9. A way of developing programs starting with a prototype and gradually testing and improving it.






10. It prevents a compiler from compiling.






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






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






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






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






15. A data type in which the values are made up of components or elements that are themselves values.






16. A compound data type that is often used to model a thing or concept in the real world.






17. To create a new object that has the same value as an existing object.






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






19. A name given to a variable.






20. To simplify an expression by performing the operations in order to yield a single value.






21. To signal an exception using the raise statement.






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






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






24. A named sequence of statements that performs some useful operation. Functions may or may not take parameters and may or may not produce a result.






25. A program (or the person who wrote it) that uses an ADT.






26. Another name for a runtime error.






27. A syntactic construct which enables lists to be generated from other lists using a syntax analogous to the mathematical set-builder notation.






28. A method that acts as a middleman between a caller and a helper method - often making the method easier or less error-prone to invoke.






29. A function that returns a boolean value.






30. Repeated execution of a set of programming statements.






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






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






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






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






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






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






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






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






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






40. Decrease by 1.






41. A programming language that is designed to be easy for humans to read and write.






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






43. To examine a program and analyze the syntactic structure.






44. To create an instance of a class.






45. An escape character '' followed by one or more printable characters used to designate a nonprintable character.






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






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






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






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






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