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. The first part of a compound statement. Headers begin with a keyword and end with a colon (:)






2. Code that is used during program development but is not part of the final version.






3. A programming construct that waits for events and processes them.






4. The node that refers to a given node.






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






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






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






8. An error that occurs at runtime.






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






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






11. A style of program design in which the majority of functions are pure.






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






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






14. Memory that can maintain its state without power. Hard drives and flash drives and rewritable compact disks (CD-RW) are examples of such memory.






15. A character that is used to separate tokens such as punctuation in a natural language.






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






17. A reserved word that is used by the compiler to parse program; you cannot use keywords like if or def or while as variable names.






18. A variable or value used to select a member of an ordered set - such as a character from a string.






19. A loop in which the terminating condition is never satisfied.






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






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






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






23. Another name for a runtime error.






24. A parameter written in a function header with an assignment to a default value which it will receive if no corresponding argument is given for it in the function call.






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






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






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 name given to a variable.






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






30. To translate a program written in a high-level language into a low-level language all at once - in preparation for later execution.






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






32. An operator that takes two operands.






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






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






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






36. One of the possible paths of the flow of execution determined by conditional execution.






37. An error in a program that makes it impossible to parse






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






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






40. An assertion that should be true of an object at all times (except perhaps while the object is being modified).






41. One of the nodes referred to by a node.






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






43. A data type which cannot be modified. Assignments to elements or slices of immutable types cause a runtime error.






44. A tree in which each node refers to zero or one or two dependent nodes.






45. To follow the flow of execution of a program by hand - recording the change of state of the variables and any output produced.






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






47. One of the named data items that makes up an instance.






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






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






50. A definition which defines something in terms of itself. It often provides an elegant way to express complex data structures.