akosiraff

15 MCQ (TCO 1) Microsoft Visual C++ is an example of

Jun 27th, 2013
414
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1.  
  2. Download: http://solutionzip.com/downloads/15-mcq-tco-1-microsoft-visual-c-is-an-example-of/
  3. 1. (TCO 1) Microsoft Visual C++ is an example of a(n) _____. (Points : 4)
  4. C++ programming language
  5. debugger
  6. compiler
  7. IDE
  8. 2. (TCO 2) Which characters make up the stream extraction operator? (Points : 4)
  9. >>
  10. ::
  11.  
  12. //
  13. 3. (TCO 2) Which of the following statements is not a C++ syntax rule? (Points : 4)
  14. C++ is not case sensitive.
  15. Blocks of code are defined by curly braces.
  16. Statements must end with a semicolon.
  17. Every C++ program must have a function named “main.”
  18. 4. (TCO 2) To assign a value 1 to variable x, you write _____. (Points : 4)
  19. x++;
  20. 1 = x;
  21. x = 1;
  22. x == 1;
  23. 5. (TCO 3) What is the value of x after the following statement?
  24. float x;
  25. x = 3.0 / 4.0 + (3 + 1)/ 5 ; (Points : 4)
  26. 0.75
  27. 1.55
  28. 0
  29. 1.25
  30. 6. (TCO 4) _____ is often used in the design of a program to describe the program processing. (Points : 4)
  31. Pseudocode
  32. Algorithm
  33. Program control
  34. Data flow
  35. 7. (TCO 4) What is the decision symbol in a flow chart? (Points : 4)
  36. Square
  37. Rectangle
  38. Circle
  39. Diamond
  40. 8. (TCO 4) Programmers often write the if statement on two lines to visually separate the decision-making condition from its resulting action; however, only one _____ follows the entire statement. (Points : 4)
  41. colon
  42. semicolon
  43. curly bracket
  44. parenthesis
  45. 9. (TCO 5) In a count-controlled loop, the counter performs which of the following actions? (Points : 4)
  46. Counter initialization
  47. Counter testing
  48. Counter adjustment
  49. All of the above
  50. 10. (TCO 5) When should a programmer select a do while loop for his or her program? (Points : 4)
  51. When the programmer knows the exact number of times the loop will be executed
  52. When the programmer knows the loop must be executed at least once
  53. When he or she is not sure how many times the loop will be executed
  54. There is no reason to select a for loop. Any loop can be used at any time.
  55. 11. (TCO 5) The while loop has two important parts: an expression that is tested for a true or false value, and _____. (Points : 4)
  56. a statement or block that is repeated as long as the expression is true
  57. a statement or block that is repeated only if the expression is false
  58. one line of code that is repeated once if the expression is true
  59. a statement or block that is repeated once if the expression is true
  60. 12. (TCO 5) A loop that is inside another loop is called _____. (Points : 4)
  61. an infinite loop
  62. a pretest loop
  63. a posttest loop
  64. a nested loop
  65. 13. (TCO 6) Debugging is like being a(n) _____. (Points : 4)
  66. accountant
  67. attorney
  68. police officer
  69. detective
  70. 14. (TCO 7) Code written in a specific format to perform a single task or calculation is called a _____. (Points : 4)
  71. function
  72. loop
  73. decision statement
  74. task
  75. 15. (TCO 8) A value that is part of a function header is called a(n) _____. (Points : 4)
  76. argument
  77. parameter
  78. initializer
  79. referenc
  80.  
  81. Download: http://solutionzip.com/downloads/15-mcq-tco-1-microsoft-visual-c-is-an-example-of/
Advertisement
Add Comment
Please, Sign In to add comment