У вас вопросы?
У нас ответы:) SamZan.net

The sum is- followed by the vlue of vrible sum cout [[

Работа добавлена на сайт samzan.net:

Поможем написать учебную работу

Если у вас возникли сложности с курсовой, контрольной, дипломной, рефератом, отчетом по практике, научно-исследовательской и любой другой работой - мы готовы помочь.

Предоплата всего

от 25%

Подписываем

договор

Выберите тип работы:

Скидка 25% при заказе до 28.12.2024

  1.  Declare variables sum and x to be of type int
  2.  int sum, x;
  3.  int sum; x;
  4.  int sum x;
  5.  int sum, int x;
  6.  not sure
  7.  Set variable x to 1
  8.  x=1;
  9.  x==1;
  10.  1=x;
  11.  x(1);
  12.  not sure
  13.  Set variable sum to 0
  14.  sum=0;
  15.  sum>>0;
  16.  sum(0);
  17.  sum<<0;
  18.  sum+=0;
  19.  Add variable x to variable sum and assign the result to variable sum
  20.  sum+=x;
  21.  x=x+sum;
  22.  x+=sum;
  23.  sum++=x;
  24.  sum=sum+x--;
  25.  Print "The sum is: " followed by the value of variable sum
  26.  cout << "The sum is: " << sum << end1;
  27.  cout << sum << "The sum is: " << end1;
  28.  cout >> "The sum is: " >> sum << end1;
  29.  cout << "The sum is: sum” << end1;
  30.  cout << "The sum is: " << “sum” << end1;
  31.  State the values of the variable after the calculation is performed. Assume that, when a statement begins executing, all variables have the integer value 5:
    product *= x++;
  32.  product = 25, x = 6;
  33.  product = 6, x = 25;
  34.  product = 30, x = 6;
  35.  not sure
  36.  not sure
  37.  State the values of the variable after the calculation is performed. Assume that, when a statement begins executing, all variables have the integer value 5:
    quotient /= ++x;
  38.  quotient = 0, x = 6;
  39.  quotient = 1, x = 6;
  40.  not sure
  41.  not sure
  42.  not sure
  43.  Write single C++ statements that input integer variable x with cin and >>
  44.  cin>>x;
  45.  x>>cin;
  46.  not sure
  47.  not sure
  48.  not sure
  49.  Write single C++ statements that input integer variable y with cin and >>.
  50.  cin >> y;
  51.  y>>cin;
  52.  not sure
  53.  not sure
  54.  not sure
  55.  Write single C++ statements that postincrement variable i by 1
  56.  i++;
  57.  i--;
  58.  ++i;
  59.  --i;
  60.  not sure
  61.  Write single C++ statements that determine whether i is less than or equal to y
  62.  if (i<=y)
  63.  if (y<=i)
  64.  if (i>=y)
  65.  while (i<=y)
  66.  not sure
  67.  Write single C++ statements that output integer variable power with cout and <<
  68.  cout << power << endl;
  69.  power<<cout<<endl;< li=""></cout<<endl;<>
  70.  endl<<power<<cout;< li=""></power<<cout;<>
  71.  not sure
  72.  not sure
  73.  Identify and correct the errors in the following code:
    while ( c <= 5 )
    {
    product *= c;
    c++;
  74.  while ( c <= 5 )
    {
    product *= c;
    c++;
    }
  75.  while ( c <= 5 );
    {
    product *= c;
    c++;
  76.  while ( c <= 5 )
    {
    product *= c;
    c++
    }
  77.  not sure
  78.  not sure
  79.  Identify and correct the errors in the following code:
    if ( gender == 1 )
    cout << "Woman" << endl;
    else;
    cout << "Man" << endl;
  80.  if ( gender == 1 )
    cout << "Woman" << endl;
    else
    cout << "Man" << endl;
  81.  if ( gender = 1 )
    cout << "Woman" << endl;
    else;
    cout << "Man" << endl;
  82.  if ( gender = 1 )
    cout << "Woman" << endl;
    else
    cout << "Man" << endl;
  83.  not sure
  84.  not sure
  85.  Identify and correct the errors in the following code:
    cin << value;
  86.  cin >> value;
  87.  cin<<value< li=""></value<>
  88.  value<<cin;< li=""></cin;<>
  89.  not sure
  90.  not sure
  91.  What is wrong with the following while repetition statement?
    while ( z >= 0 )
    sum += z;
  92.  The value of the variable z is never changed in the while statement. Therefore, if the loop continuation condition (z >= 0) is initially true, an infinite loop is created. To prevent the infinite loop, z must be decremented so that it eventually becomes less than 0.
  93.  We can’t use name sum for variables, because it is a C++ keyword.
  94.  The value of the variable z is never changed in the while statement. Therefore, if the loop continuation condition (z >= 0) is initially false, an infinite loop is created. To prevent the infinite loop, z must be incremented so that it eventually becomes greater than 0.
  95.  The value of the variable sum is never changed in the while statement. Therefore, if the loop continuation condition (z >= 0) is initially true, an infinite loop is created. To prevent the infinite loop, sum must be decremented so that it eventually becomes less than 0.
  96.  not sure
  97.  The default case is required in the switch selection statement
  98.  false
  99.  true
  100.  not sure
  101.  not sure
  102.  not sure
  103.  The break statement is required in the default case of a switch selection statement to exit the switch properly
  104.  false
  105.  true
  106.  not sure
  107.  not sure
  108.  not sure
  109.  The expression ( x > y && a < b ) is true if either the expression x > y is true or the expression a < b is true
  110.  false
  111.  true
  112.  not sure
  113.  not sure
  114.  not sure
  115.  An expression containing the || operator is true if either or both of its operands are true
  116.  true
  117.  false
  118.  not sure
  119.  not sure
  120.  not sure
  121.  Write a C++ statement or a set of C++ statements to sum the odd integers between 1 and 99 using a for statement. Assume the integer variables sum and count have been declared
  122.  sum = 0;
    for ( count = 1; count <= 99; count += 2 ) sum += count;
  123.  sum = 0;
    for ( count = 1; count < 99; count += 1 ) sum += count;
  124.  sum = 0;
    for ( count = 1; count >= 99; count += 2 ) sum += count;
  125.  sum = 0;
    for ( count = 1; count <= 99; count += 2 ) sum -= count;
  126.  not sure
  127.  Write a C++ statement or a set of C++ statements to print the value 333.546372 in a field width of 15 characters with precisions of 1, 2 and 3. Print each number on the same line. Left-justify each number in its field.
  128.  cout << fixed << left
    << setprecision( 1 ) << setw( 15 ) << 333.546372
    << setprecision( 2 ) << setw( 15 ) << 333.546372
    << setprecision( 3 ) << setw( 15 ) << 333.546372
    << endl;
  129.  cin << fixed << left
    << setprecision( 1 ) << setw( 15 ) << 333.546372
    << setprecision( 2 ) << setw( 15 ) << 333.546372
    << setprecision( 3 ) << setw( 15 ) << 333.546372
    << endl;
  130.  cout << fixed << left
    << setprecision( 1 ) << 333.546372;
    << setprecision( 2 ) << 333.546372;
    << setprecision( 3 ) << 333.546372;
    << endl;
  131.  cout << fixed << left
    << setw( 15 ) << 333.546372
    << setw( 15 ) << 333.546372
    << setw( 15 ) << 333.546372
    << endl;
  132.  not sure
  133.  Write a C++ statement or a set of C++ statements to calculate the value of 2.5 raised to the power 3 using function pow. Print the result with a precision of 2 in a field width of 10 positions
  134.  cout << fixed << setprecision( 2 ) << setw( 10 ) << pow( 2.5, 3 ) << endl;
  135.  cout << fixed << setw( 10 ) << pow( 2.5, 3 ) << endl;
  136.  cout << fixed << setprecision( 2 ) << pow( 2.5, 3 ) << endl;
  137.  cout << fixed << setprecision( 2 ) << setw( 10 ) << endl;
  138.  not sure
  139.  Write a C++ statement or a set of C++ statements to print the integers from 1 to 20 using a while loop and the counter variable x. Assume that the variable x has been declared, but not initialized. Print only 5 integers per line. [Hint: Use the calculation x % 5. When the value of this is 0, print a newline character; otherwise, print a tab character.]
  140.  x = 1;
    while ( x <= 20 )
    {
    cout << x;
    if ( x % 5 == 0 )
    cout << endl;
    else
    cout << '\t';
    x++;
    }
  141.  x = 1;
    while ( x >= 20 )
    {
    cout << x;
    if ( x % 5 == 0 )
    cout << endl;
    else
    cout << '\t';
    x++;
    }
  142.  x = 1;
    while ( x <= 20 )
    {
    cout << x;
    if ( x % 5 = 0 )
    cout << endl;
    else
    cout << '\t';
    x++;
    }
  143.  not sure
  144.  not sure
  145.  Find the error(s) in the following code segment:
    x = 1;
    while ( x <= 10 );
    x++;
    }
  146.  x = 1;
    while ( x <= 10 )
    x++;
    }
  147.  x = 1;
    while ( x <= 10 );
    {
    x++;
    }
  148.  x = 1;
    while ( x <= 10 ) {
    x++}
  149.  x = 1;
    while ( x <= 10 );
    x++; {
    }
  150.  not sure
  151.  Find the error(s) in the following code segment:
    for ( y = .1; y != 1.0; y += .1 ) cout << y << endl;
  152.  for ( y = 1; y != 10; y++ ) cout << ( static_cast< double >( y ) / 10 ) << endl;
  153.  for ( y = 0.1; y != 1.0; y += 0.1 ) cout << y << endl;
  154.  for ( y = 1; y != 10; y +=1 ) cout << y / 10 << endl;
  155.  not sure
  156.  not sure
  157.  Find the error(s) in the following code segment:
    switch ( n )
    {
    case 1:
    cout << "The number is 1" << endl;
    case 2:
    cout << "The number is 2" << endl;
    break;
    default:
    cout << "The number is not 1 or 2" << endl;
    break;
    }
  158.  switch ( n )
    {
    case 1:
    cout << "The number is 1" << endl;
    break;
    case 2:
    cout << "The number is 2" << endl;
    break;
    default:
    cout << "The number is not 1 or 2" << endl;
    break;
    }
  159.  switch ( n )
    {
    case 1:
    cout << "The number is 1" << endl;
    case 2:
    cout << "The number is 2" << endl;
    default:
    cout << "The number is not 1 or 2" << endl;
    }
  160.  switch ( n )
    {
    case 1:
    cout << "The number is 1" << endl;
    break;
    case 2:
    cout << "The number is 2" << endl;
    break; 
    }
  161.  not sure
  162.  not sure
  163.  Find the error(s) in the following code segment. The following code should print the values 1 to 10:
    n = 1;
    while ( n < 10 ) cout << n++ << endl;
  164.  n = 1;
    while ( n < 11 ) cout << n++ << endl;
  165.  n = 1;
    while ( n <= 10 ) cout << ++n << endl;
  166.  n = 1;
    while ( n <=11 ) cout << n++ << endl;
  167.  not sure
  168.  not sure
  169.  What variable is?
  170.  named part in a memory
  171.  changeable constant
  172.  function
  173.  constant
  174.  not sure
  175.  Program components in C++ are called ________ and ________.
  176.  functions, classes
  177.  types, names
  178.  procedures, functions
  179.  rules, objects
  180.  not sure
  181.  A function is invoked with a(n) ________.
  182.  function call
  183.  function name
  184.  int main()
  185.  not sure
  186.  not sure
  187.  A variable that is known only within the function in which it is defined is called a(n) ________.
  188.  local variable
  189.  global variable
  190.  temporary variable
  191.  class variable
  192.  not sure
  193.  The ________ statement in a called function passes the value of an expression back to the calling function
  194.  return
  195.  main
  196.  #include
  197.  getline
  198.  function
  199.  The keyword ________ is used in a function header to indicate that a function does not return a value or to indicate that a function contains no parameters
  200.  void
  201.  int
  202.  main
  203.  float
  204.  null
  205.  The ________ of an identifier is the portion of the program in which the identifier can be used
  206.  scope
  207.  state
  208.  location
  209.  area
  210.  not sure
  211.  The three ways to return control from a called function to a caller are ________, ________ and ________.
  212.  return, return expression or encounter the closing right brace of a function.
  213.  stop, break, goto
  214.  forward call, goto label and repeat
  215.  not sure
  216.  not sure
  217.  A(n)________ allows the compiler to check the number, types and order of the arguments passed to a function.
  218.  function prototype
  219.  function definition
  220.  function call
  221.  function variable
  222.  function name
  223.  Function ________ is used to produce random numbers
  224.  rand()
  225.  srand()
  226.  random()
  227.  fluct()
  228.  not sure
  229.  Function ________ is used to set the random number seed to randomize a program
  230.  srand()
  231.  rand()
  232.  set_seed()
  233.  seed()
  234.  not sure
  235.  The storage-class specifiers are mutable, ________, ________, ________ and ________.
  236.  auto, register, extern, static
  237.  dynamic, stable, specific, internal
  238.  local, global, auto, register
  239.  not sure
  240.  not sure
  241.  Variables declared in a block or in the parameter list of a function are assumed to be of storage class ________ unless specified otherwise
  242.  auto
  243.  register
  244.  local
  245.  extern
  246.  static
  247.  Storage-class specifier ________ is a recommendation to the compiler to store a variable in one of the computer's registers
  248.  register
  249.  auto
  250.  static
  251.  not sure
  252.  not sure
  253.  A variable declared outside any block or function is a(n) ________ variable
  254.  global
  255.  external
  256.  special
  257.  extern
  258.  correct
  259.  For a local variable in a function to retain its value between calls to the function, it must be declared with the ________ storage-class specifier
  260.  static
  261.  register
  262.  local
  263.  auto
  264.  member
  265.  The six possible scopes of an identifier are ________, ________, ________, ________, ________ and ________.
  266.  function scope, file scope, block scope, function-prototype scope, class scope, namespace scope
  267.  local scope, global scope, register scope, auto scope, record scope, main function scope
  268.  not sure
  269.  not sure
  270.  not sure
  271.  A function that calls itself either directly or indirectly (i.e., through another function) is a(n) ________ function
  272.  recursive
  273.  loop
  274.  repetition
  275.  special
  276.  not sure
  277.  A recursive function typically has two components: One that provides a means for the recursion to terminate by testing for a(n) ________ case and one that expresses the problem as a recursive call for a slightly simpler problem than the original call
  278.  base
  279.  initial
  280.  simplest
  281.  stable
  282.  elementary
  283.  In C++, it is possible to have various functions with the same name that operate on different types or numbers of arguments. This is called function ________.
  284.  overloading
  285.  prototype
  286.  copy
  287.  duplicate
  288.  not sure
  289.  The ________ enables access to a global variable with the same name as a variable in the current scope
  290.  unary scope resolution operator (::)
  291.  var
  292.  name
  293.  local
  294.  register
  295.  Calculate the remainder after q is divided by divisor and assign the result to q. Write this statement two different ways
  296.  q %= divisor; 
    q = q % divisor;
  297.  q /= divisor; 
    q = q / divisor;
  298.  q *= divisor; 
    q = q * divisor;
  299.  q -= divisor/q; q = q - divisor/q;
  300.  not sure
  301.  Predecrement the variable x by 1, then subtract it from the variable total
  302.  total -= --x;
  303.  total -= ++x;
  304.  total -= x--;
  305.  total -= x++-;
  306.  total = --x;
  307.  Determine whether the value of the variable count is greater than 10. If it is, print "Count is greater than 10."
  308.  if ( count > 10) cout << "Count is greater than 10" << endl;
  309.  if ( count => 10) cout << "Count is greater than 10" << endl;
  310.  if ( count < 10) cout << "Count is greater than 10" << endl;
  311.  if ( count > 10) cout >> "Count is greater than 10" << endl;
  312.  if ( count > 10) cin >> "Count is greater than 10" << endl;
  313.  In one statement, assign the sum of the current value of x and y to z and postincrement the value of x
  314.  z = x++ + y;
  315.  z=++x +y;
  316.  x++;
    z=x+y;
  317.  z=x+y++;
  318.  z=x++y;
  319.  Write four different C++ statements that each add 1 to integer variable x
  320.  x =+ 1; x += 1; ++x; x++;
  321.  x == x + 1; x += 1; ++x; x++;
  322.  x += x + 1; x += 1; ++x; x++;
  323.  not sure
  324.  not sure
  325.  When it is not known in advance how many times a set of statements will be repeated, a(n)_________value can be used to terminate the repetition
  326.  Sentinel, signal, flag or dummy
  327.  stupid
  328.  counter
  329.  arisen
  330.  not sure
  331.  Repeating a set of instructions a specific number of times is called_________repetition
  332.  Counter-controlled or definite
  333.  sentimental
  334.  indefinite
  335.  loop
  336.  not sure
  337.  The_________selection statement is used to execute one action when a condition is true or a different action when that condition is false.
  338.  if…else
  339.  while
  340.  do…while
  341.  for
  342.  not sure
  343.  All programs can be written in terms of three types of control structures:_________, __________and_________.
  344.  Sequence, selection and repetition
  345.  static, dynamic and functional
  346.  do, while and for
  347.  if, else and when
  348.  not sure
  349.  Explain the purpose of a function parameter. What is the difference between a parameter and an argument?
  350.  A parameter represents additional information that a function requires to perform its task. Each parameter required by a function is specified in the function header. An argument is the value supplied in the function call. When the function is called, the argument value is passed into the function parameter so that the function can perform its task
  351.  A local variable is declared in the body of a function and can be used only from the point at which it is declared to the immediately following closing brace. A data member is declared in a class definition, but not in the body of any of the class's member functions. Every object (instance) of a class has a separate copy of the class's data members. Also, data members are accessible to all member functions of the class.
  352.  not sure
  353.  not sure
  354.  not sure
  355.  What is the difference between a local variable and a data member?
  356.  A local variable is declared in the body of a function and can be used only from the point at which it is declared to the immediately following closing brace. A data member is declared in a class definition, but not in the body of any of the class's member functions. Every object (instance) of a class has a separate copy of the class's data members. Also, data members are accessible to all member functions of the class.
  357.  A parameter represents additional information that a function requires to perform its task. Each parameter required by a function is specified in the function header. An argument is the value supplied in the function call. When the function is called, the argument value is passed into the function parameter so that the function can perform its task
  358.  not sure
  359.  not sure
  360.  not sure
  361.  The types of arguments in a function call must match the types of the corresponding parameters in the function prototype's parameter list
  362.  true
  363.  false
  364.  not sure
  365.  not sure
  366.  not sure
  367.  Any source-code file that contains int main() can be used to execute a program
  368.  true
  369.  false
  370.  not sure
  371.  not sure
  372.  not sure
  373.  Every function's body is delimited by left and right braces ({ and }).
  374.  true
  375.  false
  376.  not sure
  377.  not sure
  378.  not sure
  379.  Variables declared in the body of a particular member function are known as data members and can be used in all member functions of the class
  380.  false
  381.  true
  382.  not sure
  383.  not sure
  384.  not sure
  385.  Data members or member functions declared with access specifier private are accessible to member functions of the class in which they are declared
  386.  true
  387.  false
  388.  not sure
  389.  not sure
  390.  not sure
  391.  Empty parentheses following a function name in a function prototype indicate that the function does not require any parameters to perform its task
  392.  true
  393.  false
  394.  not sure
  395.  not sure
  396.  not sure
  397.  By convention, function names begin with a capital letter and all subsequent words in the name begin with a capital letter
  398.  false
  399.  true
  400.  not sure
  401.  not sure
  402.  not sure
  403.  The source-code file and any other files that use a class can include the class's header file via an _________ preprocessor directive
  404.  #include
  405.  
  406.  using namespace std;
  407.  void
  408.  main
  409.  When a member function is defined outside the class definition, the function header must include the class name and the _________, followed by the function name to "tie" the member function to the class definition
  410.  binary scope resolution operator (::)
  411.  space
  412.  #include
  413.  
  414.  ()
  415.  Function _________ from the library reads characters until a newline character is encountered, then copies those characters into the specified string
  416.  getline
  417.  super
  418.  stringit
  419.  size
  420.  member
  421.  Return type _________ indicates that a function will perform a task but will not return any information when it completes its task
  422.  void
  423.  int
  424.  double
  425.  null
  426.  empty
  427.  Keyword public is a(n) _________.
  428.  access specifier
  429.  function
  430.  class
  431.  method
  432.  data specifier
  433.  When each object of a class maintains its own copy of an attribute, the variable that represents the attribute is also known as a(n) _________.
  434.  data member
  435.  object
  436.  script
  437.  method
  438.  function
  439.  Each parameter in a function header should specify both a(n) _________ and a(n) _________.
  440.  type, name
  441.  name, family name
  442.  type, function
  443.  order, place
  444.  class, manner
  445.  A class definition is typically stored in a file with the _________ filename extension
  446.  .h
  447.  .cpp
  448.  .exe
  449.  .com
  450.  .txt
  451.  Every class definition contains keyword _________ followed immediately by the class's name
  452.  class
  453.  object
  454.  type
  455.  root
  456.  function
  457.  A house is to a blueprint as a(n) _________ is to a class
  458.  object
  459.  type
  460.  model
  461.  feature
  462.  mother-board
  463.  Identify and correct the errors in the following statement (assume that the statement using std::cout; is used):
    if ( c => 7 ) cout << "c is equal to or greater than 7\n";
  464.  if ( c >= 7 ) cout << "c is equal to or greater than 7\n";
  465.  if ( c >< 7 ) cout << "c is equal to or greater than 7\n";
  466.  if ( c >> 7 ) cout << "c is equal to or greater than 7\n";
  467.  if ( c !> 7 ) cout << "c is equal to or greater than 7\n";
  468.  if ( c = 7 ) cout << "c is equal to or greater than 7\n";
  469.  Identify and correct the errors in the following statement (assume that the statement using std::cout; is used):
    if ( c < 7 );
    cout << "c is less than 7\n";
  470.  if ( c < 7 ) cout << "c is less than 7\n";
  471.  if ( c < 7 ); { cout << "c is less than 7\n";}
  472.  if ( c < 7 ) cout << "c is less than 7\n"
  473.  if ( c < 7 ) { cout << "c is less than 7\n"}
  474.  if ( c < 7 ) then cout << "c is less than 7\n";
  475.  Print the message "This is a C++ program" with each word separated from the next by a tab
  476.  std::cout << "This\tis\ta\tC++\tprogram\n";
  477.  std::cout << "This\ais\aa\aC++\aprogram\a"
  478.  std::cout << "This\0is\0a\0C++\0program\0"
  479.  std::cout << "This\sis\sa\sC++\sprogram\n"
  480.  std::cout << "This\%is\%a\%C++\%program\n"
  481.  Print the message "This is a C++ program" with each word on a separate line
  482.  std::cout << "This\nis\na\nC++\nprogram\n";
  483.  std::cout << "This is a C++ program";
  484.  std::cout << "This\tis\ta\nC++\tprogram\n";
  485.  std::cout << "This\tis\ta\tC++\tprogram\t";
  486.  std::cout << "This\ais\aa\aC++\aprogram\a";
  487.  Print the message "This is a C++ program" on one line
  488.  std::cout << "This is a C++ program\n";
  489.  std::cout << "This is a C++ \t\nprogram\n";
  490.  std::cout >> "This is a C++ program\n";
  491.  std::cin << "This is a C++ program\n";
  492.  std::cout << "This \nis \na C++ pr\nogram\n";
  493.  If the variable number is not equal to 7, print "The variable number is not equal to 7"
  494.  if ( number != 7 ) std::cout << "The variable number is not equal to 7\n";
  495.  if ( number == 7 ) std::cout << "The variable number is not equal to 7\n";
  496.  if ( number = 7 ) std::cout << "The variable number is not equal to 7\n";
  497.  if ( number < > 7 ) std::cout << "The variable number is not equal to 7\n";
  498.  if ( number >< 7 ) std::cout << "The variable number is not equal to 7\n";
  499.  Read an integer from the user at the keyboard and store the value entered in integer variable age.
  500.  std::cin >> age;
  501.  std::cin << age;
  502.  std::cout >> age;
  503.  std::cout << age;
  504.  std::cin >> age
  505.  Prompt the user to enter an integer. End your prompting message with a colon (:) followed by a space and leave the cursor positioned after the space
  506.  std::cout << "Enter an integer: ";
  507.  std::cin << "Enter an integer: ";
  508.  std::cout >> "Enter an integer: ";
  509.  std::cout << "Enter an integer: "<<endl;< li=""></endl;<>
  510.  std::cout << "Enter an integer: \n";
  511.  Declare the variables c, thisIsAVariable, q76354 and number to be of type int.
  512.  int c, thisIsAVariable, q76354, number;
  513.  int c, thisIsAVariable, q76354, number
  514.  double c, thisIsAVariable, q76354, number;
  515.  char c;
    int thisIsAVariable;
    int q76354;
    int number;
  516.  not sure
  517.  A C++ program that prints three lines of output must contain three statements using cout and the stream insertion operator
  518.  false
  519.  true
  520.  not sure
  521.  not sure
  522.  not sure
  523.  The arithmetic operators *, /, %, + and all have the same level of precedence
  524.  false
  525.  true
  526.  not sure
  527.  not sure
  528.  not sure
  529.  The modulus operator (%) can be used only with integer operands
  530.  true
  531.  false
  532.  not sure
  533.  not sure
  534.  not sure
  535.  Declarations can appear almost anywhere in the body of a C++ function
  536.  true
  537.  false
  538.  not sure
  539.  not sure
  540.  not sure
  541.  C++ considers the variables number and NuMbEr to be identical
  542.  false
  543.  true
  544.  not sure
  545.  not sure
  546.  not sure
  547.  All variables must be given a type when they are declared
  548.  true
  549.  false
  550.  not sure
  551.  not sure
  552.  not sure
  553.  All variables must be declared before they are used
  554.  true
  555.  false
  556.  not sure
  557.  not sure
  558.  not sure
  559.  The escape sequence \n, when output with cout and the stream insertion operator, causes the cursor to position to the beginning of the next line on the screen
  560.  true
  561.  false
  562.  not sure
  563.  not sure
  564.  not sure
  565.  Comments cause the computer to print the text after the // on the screen when the program is executed
  566.  false
  567.  true
  568.  not sure
  569.  not sure
  570.  not sure
  571.  Every C++ statement ends with a(n):
  572.  semicolon
  573.  brace
  574.  left brace
  575.  newline
  576.  asterisk
  577.  What statement is used to make decisions:
  578.  if
  579.  while
  580.  not
  581.  and
  582.  true/false
  583.  Every C++ program begins execution at the function
  584.  main
  585.  begin
  586.  start
  587.  cpp
  588.  class
  589.  The ________ qualifier is used to declare read-only variables
  590.  const
  591.  read-only
  592.  read
  593.  static
  594.  unchangeable
  595.  A function ________ enables a single function to be defined to perform a task on many different data types
  596.  template
  597.  originator
  598.  base function
  599.  prototype
  600.  not sure
  601.  Give the function header for the following function. Function hypotenuse that takes two double-precision, floating-point arguments, side1 and side2, and returns a double-precision, floating-point result.
  602.  double hypotenuse( double side1, double side2)
  603.  float hypotenuse( double side1, double side2)
  604.  float hypotenuse( float side1, float side2)
  605.  double float hypotenuse( double float side1, double float side2)
  606.  not sure
  607.  Give the function header for the following function. Function smallest that takes three integers, x, y and z, and returns an integer.
  608.  int smallest( int x, int y, int z)
  609.  int smallest( int x, y, z)
  610.  int smallest( int x, int y, char z)
  611.  char smallest( char x, char y, char z)
  612.  not sure
  613.  Give the function header for the following function. Function instructions that does not receive any arguments and does not return a value. [Note: Such functions are commonly used to display instructions to a user.]
  614.  void instructions( void )
  615.  instructions( )
  616.  null instructions( null )
  617.  (void) instructions( void )
  618.  not sure
  619.  Give the function header for the following function. Function intToDouble that takes an integer argument, number, and returns a double-precision, floating-point result.
  620.  double intToDouble( int number)
  621.  float intToDouble( int number)
  622.  double intToDouble( double number)
  623.  int intToDouble( number)
  624.  not sure
  625.  Write a declaration for the following: Integer count that should be maintained in a register. Initialize count to 0.
  626.  register int count = 0;
  627.  int register count = 0;
  628.  int count = 0;
  629.  static int count = 0;
  630.  not sure
  631.  Write a declaration for the following: Double-precision, floating-point variable lastVal that is to retain its value between calls to the function in which it is defined.
  632.  static double lastVal;
  633.  function double lastVal;
  634.  auto double lastVal;
  635.  global double lastVal;
  636.  double lastVal;
  637.  Find the error in the following program segment:
    int g( void)
    {
    cout << "Inside function g" << endl;
    int h( void )
    {
    cout << "Inside function h" << endl;
    }
    }
  638.  int g( void)
    {
    cout << "Inside function g" << endl;
    }
    int h( void )
    {
    cout << "Inside function h" << endl;
    }
  639.  int g( void)
    {
    cout << "Inside function g" << endl;
    extern int h( void )
    {
    cout << "Inside function h" << endl;
    }
    }
  640.  int h( void)
    {
    cout << "Inside function h" << endl;
    int g( void )
    {
    cout << "Inside function g" << endl;
    }
    }
  641.  not sure
  642.  not sure
  643.  Find the error in the following program segment:
    int sum( int x, int y )
    {
    int result;
    result = x + y;
    }
  644.  int sum( int x, int y )
    {
    return x + y;
    }
  645.  result sum( int x, int y )
    {
    int result;
    result = x + y;
    }
  646.  int sum( int x, int y )
    {
    result x + y;
    }
  647.  not sure
  648.  not sure
  649.  Find the error in the following program segment:
    int sum( int n )
    {
    if ( n == 0 )
    return 0;
    else
    n + sum( n - 1 );
    }
  650.  int sum( int n )
    {
    if ( n == 0 )
    return 0;
    else
    return n + sum( n - 1 );
    }
  651.  int sum( int n )
    {
    if ( n == 0 )
    return=0;
    else
    return=n + sum( n - 1 );
    }
  652.  int sum( int n )
    {
    if ( n == 0 )
    result 0;
    else
    result n + sum( n - 1 );
    }
  653.  not sure
  654.  not sure
  655.  Find the error in the following program segment
    void f ( double a);
    {
    float a;
    cout << a << endl;
    }
  656.  void f ( double a)
    {
    cout << a << endl;
    }
  657.  void f ( double a)
    {
    float a;
    cout << a << endl;
    }
  658.  void f ( double a)
    {
    double a; 
    cout << a << endl;
    }
  659.  void f ( double a);
    {
    cout << a << endl;
    }
  660.  not sure
  661.  Find the error in the following program segment:
    void product( void )
    {
    int a;
    int b;
    int c;
    int result;
    cout << "Enter three integers: ";
    cin >> a >> b >> c;
    result = a * b * c;
    cout << "Result is " << result;
    return result;
    }
  662.  void product( void )
    {
    int a;
    int b;
    int c;
    int result;
    cout << "Enter three integers: ";
    cin >> a >> b >> c;
    result = a * b * c;
    cout << "Result is " << result;
    }
  663.  void product( void )
    {
    int a;
    int b;
    int c;
    int result;
    cout << "Enter three integers: ";
    cin >> a >> b >> c;
    result = a * b * c;
    cout << "Result is " << result;
    return product;
    }
  664.  void product( void )
    {
    int a;
    int b;
    int c;
    int result;
    cout << "Enter three integers: ";
    cin >> a >> b >> c;
    result = a * b * c;
    cout << "Result is " << result;
    return void;
    }
  665.  no ideas
  666.  no ideas
  667.  Why would a function prototype contain a parameter type declaration such as double &?
  668.  This creates a reference parameter of type "reference to double" that enables the function to modify the original variable in the calling function
  669.  This creates a reference parameter of type "reference to double" that enables the function to modify a copy of the original variable in the calling function
  670.  This creates a reference parameter of type "reference to double" that makes code safer and doesn’t let the function to modify the original variable in the calling function
  671.  no ideas
  672.  no ideas
  673.  All arguments to function calls in C++ are passed by value
  674.  false
  675.  true
  676.  no ideas
  677.  no ideas
  678.  no ideas
  679.  Lists and tables of values can be stored in __________ or __________.
  680.  arrays, vectors
  681.  functions, methods
  682.  for, while
  683.  variables, constants
  684.  no ideas
  685.  The elements of an array are related by the fact that they have the same ________ and ___________.
  686.  name, type
  687.  type, value
  688.  reference, type
  689.  memory location, name
  690.  no ideas
  691.  The number used to refer to a particular element of an array is called its ________.
  692.  subscript (or index)
  693.  number in array
  694.  position
  695.  state
  696.  port
  697.  A(n) __________ should be used to declare the size of an array, because it makes the program more scalable
  698.  constant variable
  699.  constant
  700.  static variable
  701.  number
  702.  no ideas
  703.  The process of placing the elements of an array in order is called ________ the array
  704.  sorting
  705.  searching
  706.  relocation
  707.  replacing
  708.  no ideas
  709.  The process of determining if an array contains a particular key value is called _________ the array
  710.  searching
  711.  sorting
  712.  value location
  713.  recursion
  714.  no ideas
  715.  An array that uses two subscripts is referred to as a(n) _________ array
  716.  two-dimensional
  717.  multi-dimensional
  718.  double array
  719.  “ordinary” array
  720.  no ideas
  721.  An array can store many different types of values
  722.  false
  723.  true
  724.  no ideas
  725.  no ideas
  726.  no ideas
  727.  An array subscript should normally be of data type float
  728.  false
  729.  true
  730.  no ideas
  731.  no ideas
  732.  no ideas
  733.  If there are fewer initializers in an initializer list than the number of elements in the array, the remaining elements are initialized to the last value in the initializer list
  734.  false
  735.  true
  736.  no ideas
  737.  no ideas
  738.  no ideas
  739.  It is an error if an initializer list contains more initializers than there are elements in the array
  740.  true
  741.  false
  742.  no ideas
  743.  no ideas
  744.  no ideas
  745.  An individual array element that is passed to a function and modified in that function will contain the modified value when the called function completes execution
  746.  false
  747.  true
  748.  no ideas
  749.  no ideas
  750.  no ideas
  751.  Write one or more statements that perform the following task for and array called “fractions”. Define a constant variable arraySize initialized to 10.
  752.  const int arraySize = 10;
  753.  const arraySize = 10;
  754.  int arraySize = 10;
  755.  no ideas
  756.  no ideas
  757.  Write one or more statements that perform the following task for and array called “fractions”. Declare an array with arraySize elements of type double, and initialize the elements to 0.
  758.  double fractions[ arraySize ] = { 0.0};
  759.  double fractions[ arraySize ] = { 0};
  760.  double fractions[ arraySize ] = { };
  761.  double fractions[ 0 ] = {arraySize};
  762.  no ideas
  763.  Write one or more statements that perform the following task for and array called “fractions”. Name the fourth element of the array
  764.  fractions[ 3 ]
  765.  fractions[ 4 ]
  766.  fractions( 3 )
  767.  fractions( 4 )
  768.  no ideas
  769.  Write one or more statements that perform the following task for and array called “fractions”. Refer to array element 4
  770.  fractions[ 4 ]
  771.  fractions[ 3 ]
  772.  fractions( 3 )
  773.  fractions( 4 )
  774.  no ideas
  775.  Write one or more statements that perform the following task for and array called “fractions”. Assign the value 1.667 to array element 9
  776.  fractions[ 9 ] = 1.667;
  777.  fractions[ 8 ] = 1.667;
  778.  fractions( 9 ) = 1.667;
  779.  fractions( 8 ) = 1.667;
  780.  no ideas
  781.  Write one or more statements that perform the following task for and array called “fractions”. Assign the value 3.333 to the seventh element of the array
  782.  fractions[ 6 ] = 3.333;
  783.  fractions[ 7 ] = 3.333;
  784.  fractions( 6 ) = 3.333;
  785.  fractions( 7 ) = 3.333;
  786.  no ideas
  787.  Write one or more statements that perform the following task for and array called “fractions”. Print array elements 6 and 9 with two digits of precision to the right of the decimal point.
  788.  cout << fixed << setprecision ( 2 ); cout << fractions[ 6 ] < < ' ' fractions[ 9 ] << endl;
  789.  cout << fractions[ 6 ] < < ' ' fractions[ 9 ] << endl;
  790.  cout << fixed; cout << fractions[ 6 ] < < fractions[ 9 ] << endl;
  791.  no ideas
  792.  no ideas
  793.  Write one or more statements that perform the following task for and array called “fractions”. Print all the array elements using a for statement. Define the integer variable i as a control variable for the loop.
  794.  for ( int i = 0; < arraySize; i++ ) cout << "fractions[" < i << "] = " << fractions[ i ] << endl;
  795.  for ( i = 0; < arraySize; i++ ) cout << "fractions[" < i << "] = " << fractions[ i ] << endl;
  796.  for ( int i = 0; < arraySize; i++ ) cout << "fractions[" < arraySize << "] = " << fractions[arraySize ] << endl;
  797.  no ideas
  798.  no ideas
  799.  Declare the array to be an integer array and to have 3 rows and 3 columns. Assume that the constant variable arraySize has been defined to be 3:
  800.  int table[ arraySize ][ arraySize];
  801.  int table[ 3 ][ 2 ];
  802.  const int table[ arraySize ][ arraySize];
  803.  no ideas
  804.  no ideas
  805.  Write a program segment to print the values of each element of array table in tabular format with 3 rows and 3 columns. Assume that the array was initialized with the declaration
    int table[ arraySize ][ arraySize ] = { { 1, 8 }, { 2, 4, 6 }, { 5 } };
    and the integer variables i and j are declared as control variables.
  806.  cout << " [0] [1] [2]" << endl;
    for ( int i = 0; i < arraySize; i++ ) {
    cout << '[' << i << "] ";
    for ( int j = 0; j < arraySize; j++ )
    cout << setw( 3 ) << table[ i ][ j ] << " ";
    cout << endl;
  807.  cout << " [0] [1] [2]" << endl;
    for ( i = 0; i < arraySize; i++ ) {
    cout << '[' << i << "] ";
    for ( j = 0; j < arraySize; j++ )
    cout << setw( 3 ) << table[ i ][ j ] << " ";
    cout << endl;
  808.  cout << " [0] [1] [2]" << endl;
    for ( int i = 0; i < arraySize; i++ ) {
    cout << '[' << i << "] ";
    for ( int j = 0; j < arraySize; j++ )
    cout << setw( 3 ) << table[ i ][ i ] << " ";
    cout << endl;
  809.  no ideas
  810.  no ideas
  811.  Find the error in the following program segment and correct the error:
    #include ;
  812.  #include
  813.  #include “iostream”;
  814.  #include “iostream”
  815.  no ideas
  816.  no ideas
  817.  Find the error in the following program segment and correct the error:
    arraySize = 10; // arraySize was declared const
  818.  const int arraySize=10;
  819.  no errors
  820.  const int arraySize;
    arraySize =10;
  821.  no ideas
  822.  no ideas
  823.  Find the error in the following program segment and correct the error: 
    Assume that int b[ 10 ] = { 0 };
    for ( int i = 0; <= 10; i++ )
    b[ i ] = 1;
  824.  for ( int i = 0; <= 9; i++ )
    b[ i ] = 1;
  825.  for ( int i = 0; <=10; i++ )
    b[ i ] = 1;
  826.  for ( int i = 0; < 10; i++ );
    b[ i ] = 1;
  827.  no errors
  828.  no ideas
  829.  the error in the following program segment and correct the error:
    Assume that int a[ 2 ][ 2 ] = { { 1, 2 }, { 3, 4 } };
    a[ 1, 1 ] = 5;
  830.  a[ 1, 1 ] = 5;
  831.  a[ 1, 1 ] = 5;
  832.  no errors
  833.  no ideas
  834.  no ideas
  835.  A pointer is a variable that contains as its value the____________ of another variable
  836.  address
  837.  value
  838.  name
  839.  size
  840.  reference
  841.  The three values that can be used to initialize a pointer are_____________,__________ and___________.
  842.  0, NULL, an address
  843.  value, name, number
  844.  6, 8, 10
  845.  null, nil, 0
  846.  no ideas
  847.  The only integer that can be assigned directly to a pointer is_____________.
  848.  0
  849.  FFFF FFFF
  850.  3000
  851.  no ideas
  852.  no ideas
  853.  The address operator & can be applied only to constants and to expressions
  854.  false
  855.  true
  856.  no ideas
  857.  no ideas
  858.  no ideas
  859.  A pointer that is declared to be of type void * can be dereferenced
  860.  false
  861.  true
  862.  no ideas
  863.  no ideas
  864.  no ideas
  865.  Pointers of different types can never be assigned to one another without a cast operation
  866.  false
  867.  true
  868.  no ideas
  869.  no ideas
  870.  no ideas
  871.  Declare an array of type double called numbers with 10 elements, and initialize the elements to the values 0.0, 1.1, 2.2, ..., 9.9. Assume that the symbolic constant SIZE has been defined as 10
  872.  double numbers[ SIZE ] = { 0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9 };
  873.  double numbers[ SIZE ] = { 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9 };
  874.  double numbers[ SIZE ] = { 0.0, 1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8 };
  875.  double numbers[ SIZE ] = { 0.0 ... 9.9 };
  876.  no ideas
  877.  Declare a pointer nPtr that points to a variable of type double
  878.  double *nPtr;
  879.  double nPtr;
  880.  double &nPtr;
  881.  no ideas
  882.  no ideas
  883.  Use a for statement to print the elements of array numbers using array subscript notation. Print each number with one position of precision to the right of the decimal point:
  884.  cout << fixed << showpoint << setprecision( 1 );
    for ( int i = 0; i < SIZE; i++ )
    cout << numbers[ i ] <<' ';
  885.  for ( int i = 0; i < SIZE; i++ )
    cout << numbers[ i ] <<' ';
  886.  cout << fixed << showpoint;
    for ( int i = 0; i < SIZE; i++ )
    cout << numbers[ i ] <<' ';
  887.  no ideas
  888.  no ideas
  889.  Write two separate statements that each assign the starting address of array numbers to the pointer variable nPtr.
  890.  nPtr = numbers;
    nPtr = &numbers[ 0 ];
  891.  nPtr = &numbers;
    nPtr = numbers[ 0 ];
  892.  nPtr = *numbers;
    nPtr = &numbers[ 0 ];
  893.  no ideas
  894.  no ideas
  895.  Use a for statement to print the elements of array numbers using pointer/offset notation with pointer nPtr
  896.  cout << fixed << showpoint << setprecision( 1 );
    for ( int j = 0; j < SIZE; j++ )
    cout << *( nPtr + j ) << ' ';
  897.  for ( int j = 0; j < SIZE; j++ )
    cout << nPtr + j << ' ';
  898.  cout << fixed << showpoint << setprecision( 1 );
    for ( int j = 0; j < SIZE; j++ )
    cout << &(* nPtr + j ) << ' ';
  899.  no ideas
  900.  no ideas
  901.  Use a for statement to print the elements of array numbers using pointer/offset notation with the array name as the pointer
  902.  cout << fixed << showpoint << setprecision( 1 );
    for ( int k = 0; k < SIZE; k++ )
    cout << *( numbers + k ) << ' ';
  903.  cout << fixed << showpoint << setprecision( 1 );
    for ( int k = 0; k < SIZE; k++ )
    cout << numbers + k << ' ';
  904.  cout << fixed << showpoint << setprecision( 1 );
    for ( int k = 0; k < SIZE; k++ )
    cout << &( numbers + k ) << ' ';
  905.  no ideas
  906.  no ideas
  907.  Use a for statement to print the elements of array numbers using pointer/subscript notation with pointer nPtr
  908.  cout << fixed << showpoint << setprecision( 1 );
    for ( int m = 0; m < SIZE; m++ )
    cout << nPtr[ m ] << ' ';
  909.  cout << fixed << showpoint << setprecision( 1 );
    for ( int m = 0; m < SIZE; m++ )
    cout << nPtr << ' ';
  910.  cout << fixed << showpoint << setprecision( 1 );
    for ( int m = 0; m < SIZE; m++ )
    cout << *nPtr[ m ] << ' ';
  911.  no ideas
  912.  no ideas
  913.  Refer to the fourth element of array numbers using array subscript notation, pointer/offset notation with the array name as the pointer, pointer subscript notation with nPtr and pointer/offset notation with nPtr
  914.  numbers[ 3 ]
    *( numbers + 3 )
    nPtr[ 3 ]
    *( nPtr + 3 )
  915.  numbers[ 3 ]
    &( numbers + 3 )
    *nPtr[ 3 ]
    &( nPtr + 3 )
  916.  numbers[ 3 ]
    *( numbers + 3 )
    &nPtr[ 3 ]
    *( nPtr + 3 )
  917.  no ideas
  918.  no ideas
  919.  Assuming that nPtr points to the beginning of array numbers (the starting address of the array is at location 1002500 in memory), what address is referenced by nPtr + 8?
  920.  The address is 1002500 + 8 * 8 = 1002564
  921.  The same as nPtr
  922.  NULL
  923.  no ideas
  924.  no ideas
  925.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Declare the variable fPtr to be a pointer to an object of type double.
  926.  double *fPtr;
  927.  double &fPtr;
  928.  double *&fPtr;
  929.  no ideas
  930.  no ideas
  931.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Assign the address of variable number1 to pointer variable fPtr.
  932.  fPtr = &number1;
  933.  fPtr = *number1;
  934.  *fPtr = number1;
  935.  fPtr = *&number1;
  936.  no ideas
  937.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Print the value of the object pointed to by fPtr.
  938.  cout << "The value of *fPtr is " << *fPtr << endl;
  939.  cout << "The value of fPtr is " << fPtr << endl;
  940.  cout << "The value of &fPtr is " << &fPtr << endl;
  941.  no ideas
  942.  no ideas
  943.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Assign the value of the object pointed to by fPtr to variable number2.
  944.  number2 = *fPtr;
  945.  number2 = fPtr;
  946.  number2 = &fPtr;
  947.  no ideas
  948.  no ideas
  949.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Print the value of number2.
  950.  cout << "The value of number2 is " << number2 << endl;
  951.  cout << "The value of number2 is " << &number2 << endl;
  952.  cout << "The value of number2 is " << *ptr << endl;
  953.  no ideas
  954.  no ideas
  955.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Print the address of number1.
  956.  cout << "The address of number1 is " << &number1 << endl;
  957.  cout << "The address of number1 is " << *number1 << endl;
  958.  cout << "The address of number1 is " << address(number1) << endl;
  959.  cout << "The address of number1 is " << number1.address << endl;
  960.  no ideas
  961.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Print the address stored in fPtr.
  962.  cout << "The address stored in fPtr is " << fPtr << endl;
  963.  cout << "The address stored in fPtr is " << *fPtr << endl;
  964.  cout << "The address stored in fPtr is " << &fPtr << endl;
  965.  cout << "The address stored in fPtr is " << fPtr.address << endl;
  966.  no ideas
  967.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Copy the string stored in array s2 into array s1.
  968.  strcpy( s1, s2 );
  969.  copy_string(s1, s2);
  970.  strcopy( s1, s2);
  971.  no ideas
  972.  no ideas
  973.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Compare the string in s1 with the string in s2, and print the result.
  974.  cout << "strcmp(s1, s2) = " << strcmp( s1, s2 ) << endl;
  975.  cout << "strcmp(s1, s2) = " << strcompare( s1, s2 ) << endl;
  976.  cout << "strcmp(s1, s2) = " << cmpstr( s1, s2 ) << endl;
  977.  cout << "strcmp(s1, s2) = " << string_compare( s1, s2 ) << endl;
  978.  no ideas
  979.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Append the first 10 characters from the string in s2 to the string in s1.
  980.  strncat( s1, s2, 10 );
  981.  string_cat( s1, s2, 10 );
  982.  catstrn( s1, s2, 10 );
  983.  no ideas
  984.  no ideas
  985.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Determine the length of the string in s1, and print the result.
  986.  cout << "strlen(s1) = " << strlen( s1 ) << endl;
  987.  cout << "strlen(s1) = " << string_length( s1 ) << endl;
  988.  cout << "strlen(s1) = " << lenstr( s1 ) << endl;
  989.  no ideas
  990.  no ideas
  991.  Write a single statement that performs the specified task. Assume that floating-point variables number1 and number2 have been declared and that number1 has been initialized to 7.3. Assume that variable ptr is of type char *. Assume that arrays s1 and s2 are each 100-element char arrays that are initialized with string literals. Assign to ptr the location of the first token in s2. The tokens delimiters are commas (,).
  992.  ptr = strtok( s2, ",");
  993.  ptr = str_tok( s2, ",");
  994.  ptr = tokstr ( s2, ",");
  995.  no ideas
  996.  no ideas
  997.  Write the function header for a function called exchange that takes two pointers to double-precision, floating-point numbers x and y as parameters and does not return a value
  998.  void exchange( double *x, double *y )
  999.  void exchange( double x, double y )
  1000.  void exchange( double *x, double y )
  1001.  void exchange( double x, double *y )
  1002.  no ideas
  1003.  Write the function header for a function called evaluate that returns an integer and that takes as parameters integer x and a pointer to function poly. Function poly takes an integer parameter and returns an integer.
  1004.  int evaluate( int x, int (*poly)( int ))
  1005.  int evaluate( int x, int (poly)( int ))
  1006.  int evaluate( int x, int (*poly))
  1007.  int evaluate( int , int (*)( int ))
  1008.  no ideas
  1009.  Write two statements that each initialize character array vowel with the string of vowels, "AEIOU".
  1010.  char vowel[] = "AEIOU";
    char vowel[] = { 'A', 'E', 'I', 'O', 'U', '\0' };
  1011.  char vowel = "AEIOU";
    char vowel = { 'A', 'E', 'I', 'O', 'U', '\0' };
  1012.  char vowel() = "AEIOU";
    char vowel() = { 'A', 'E', 'I', 'O', 'U', '\0' };
  1013.  string vowel[] = "AEIOU";
    string vowel[] = { 'A', 'E', 'I', 'O', 'U', '\0' };
  1014.  no ideas
  1015.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    ++zPtr;
    zPtr = z;
  1016.  ++zPtr;
  1017.  no errors
  1018.  zPtr++;
  1019.  no ideas
  1020.  no ideas
  1021.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    // use pointer to get first value of array
    number = zPtr;
  1022.  number = *zPtr;
  1023.  number = &zPtr;
  1024.  no errors
  1025.  no ideas
  1026.  no ideas
  1027.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    // assign array element 2 (the value 3) to number
    number = *zPtr[ 2 ];
  1028.  number = zPtr[ 2 ];
  1029.  number = &zPtr[ 2 ];
  1030.  number = *zPtr( 2 );
  1031.  no ideas
  1032.  no ideas
  1033.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    // print entire array z
    for ( int i = 0; i <= 5; i++ ) cout << zPtr[ i ] << endl;
  1034.  for ( int i = 0; i < 5; i++ ) cout << zPtr[ i ] << endl;
  1035.  for ( int i = 0; i <= 5; i++ ) cout << *zPtr[ i ] << endl;
  1036.  for ( int i = 0; i <= 5; i++ ) cout << &zPtr[ i ] << endl;
  1037.  for ( int i = 0; i < 5; i++ ) cout << zPtr( i ) << endl;
  1038.  no ideas
  1039.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    // assign the value pointed to by sPtr to number
    number = *sPtr;
  1040.  number = *static_cast< int * >( sPtr );
  1041.  number = *sPtr;
  1042.  number = sPtr;
  1043.  no errors
  1044.  no ideas
  1045.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    ++z;
  1046.  ++z[4];
  1047.  ++*z;
  1048.  ++&z;
  1049.  no ideas
  1050.  no ideas
  1051.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    char s[ 10 ];
    cout << strncpy( s, "hello", 5 ) << endl;
  1052.  cout << strncpy( s, "hello", 6 ) << endl;
  1053.  char s[ 10 ];
    cout << strncpy( s, "hello", 4 ) << endl;
  1054.  no errors
  1055.  no ideas
  1056.  no ideas
  1057.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    char s[ 12 ];
    strcpy( s, "Welcome Home");
  1058.  char s[ 13 ];
    strcpy( s, "Welcome Home");
  1059.  no errors
  1060.  char s[ 11 ];
    strcpy( s, "Welcome Home");
  1061.  no ideas
  1062.  no ideas
  1063.  Find the error in the following program segment. Assume the following declarations and statements:
    int *zPtr; // zPtr will reference array z
    int *aPtr = 0;
    void *sPtr = 0;
    int number;
    int z[ 5 ] = { 1, 2, 3, 4, 5 };
    if ( strcmp( string1, string2 ) )
    cout << "The strings are equal" << endl;
  1064.  if ( strcmp( string1, string2 ) == 0)
    cout << "The strings are equal" << endl;
  1065.  if ( strcmp( string1, string2 ) != 0)
    cout << "The strings are equal" << endl;
  1066.  no errors
  1067.  no ideas
  1068.  no ideas
  1069.  What (if anything) prints when the following statement is performed?Assume the following variable declarations:
    char s1[ 50 ] = "jack";
    char s2[ 50 ] = "jill";
    char s3[ 50 ];
    cout << strcpy( s3, s2 ) << endl;
  1070.  jill
  1071.  jill (50 times)
  1072.  nothing
  1073.  no ideas
  1074.  no ideas
  1075.  What (if anything) prints when the following statement is performed?Assume the following variable declarations:
    char s1[ 50 ] = "jack";
    char s2[ 50 ] = "jill";
    char s3[ 50 ];
    cout << strcat( strcat( strcpy( s3, s1 ), " and " ), s2 ) << endl;
  1076.  jack and jill
  1077.  jack
  1078.  jill
  1079.  and
  1080.  no ideas
  1081.  What (if anything) prints when the following statement is performed?Assume the following variable declarations:
    char s1[ 50 ] = "jack";
    char s2[ 50 ] = "jill";
    char s3[ 50 ];
    cout << strlen( s1 ) + strlen( s2 ) << endl;
  1082.  8
  1083.  50
  1084.  100
  1085.  no ideas
  1086.  no ideas
  1087.  What (if anything) prints when the following statement is performed?Assume the following variable declarations:
    char s1[ 50 ] = "jack";
    char s2[ 50 ] = "jill";
    char s3[ 50 ];
    cout << strlen( s3 ) << endl;
  1088.  13
  1089.  50
  1090.  0
  1091.  NULL
  1092.  no ideas
  1093.  Class members are accessed via the ________ operator in conjunction with the name of an object (or reference to an object) of the class or via the ___________ operator in conjunction with a pointer to an object of the class
  1094.  dot (.), arrow (->)
  1095.  comma (,), arrow (->)
  1096.  semicolon (;), arrow (->)
  1097.  colon (:), arrow (->)
  1098.  no ideas
  1099.  Class members specified as _________ are accessible only to member functions of the class and friends of the class
  1100.  private
  1101.  public
  1102.  protected
  1103.  no ideas
  1104.  no ideas
  1105.  Class members specified as _________ are accessible anywhere an object of the class is in scope
  1106.  public
  1107.  private
  1108.  static
  1109.  protected
  1110.  no ideas
  1111.  __________ can be used to assign an object of a class to another object of the same class
  1112.  Default memberwise assignment (performed by the assignment operator).
  1113.  Predefined memberwise assignment.
  1114.  no ideas
  1115.  no ideas
  1116.  no ideas
  1117.  Find the error(s) in the following and correct it (them).
    Assume the following prototype is declared in class Time:
    void ~Time( int );
  1118.  ~Time( );
  1119.  void Time( int );
  1120.  ~Time( int );
  1121.  no ideas
  1122.  no ideas
  1123.  Find the error(s) in the following and correct it (them).
    The following is a partial definition of class Time:
    class Time
    {
    public:
    // function prototypes
    private:
    int hour = 0;
    int minute = 0;
    int second = 0;
    }; // end class Time
  1124.  class Time
    {
    public:
    // function prototypes
    Time (int my_hour, int my_minute, int my_second)
    {
    hour=my_hour;
    minute=my_minute; 
    second=my_second;
    }
    private:
    int hour;
    int minute;
    int second;
    }; // end class Time
  1125.  no errors
  1126.  class Time
    {
    public:
    // function prototypes
    private:
    hour = 0;
    minute = 0;
    second = 0;
    }; // end class Time
  1127.  no ideas
  1128.  no ideas
  1129.  Find the error(s) in the following and correct it (them).
    Assume the following prototype is declared in class Employee:
    int Employee( const char *, const char * );
  1130.  Employee( const char *, const char * );
  1131.  int Employee( const char *, const char * );
  1132.  Employee( const char , const char );
  1133.  no ideas
  1134.  no ideas
  1135.  __________ must be used to initialize constant members of a class
  1136.  Member initializers
  1137.  Classes
  1138.  Initializes
  1139.  no ideas
  1140.  no ideas
  1141.  A nonmember function must be declared as a(n) __________ of a class to have access to that class's private data members.
  1142.  friend
  1143.  class
  1144.  object
  1145.  record
  1146.  no ideas
  1147.  The __________ operator dynamically allocates memory for an object of a specified type and returns a __________ to that type.
  1148.  new, pointer
  1149.  correct, reference
  1150.  local, name
  1151.  no ideas
  1152.  no ideas
  1153.  A constant object must be __________; it cannot be modified after it is created
  1154.  initialized
  1155.  created
  1156.  saved
  1157.  referenced
  1158.  no ideas
  1159.  A(n) __________ data member represents class-wide information
  1160.  static
  1161.  local
  1162.  member
  1163.  private
  1164.  no ideas
  1165.  An object's non-static member functions have access to a "self pointer" to the object called the __________ pointer
  1166.  this
  1167.  local
  1168.  friend
  1169.  proper
  1170.  no ideas
  1171.  The keyword __________ specifies that an object or variable is not modifiable after it is initialized
  1172.  const
  1173.  static
  1174.  global
  1175.  pointer
  1176.  no ideas
  1177.  If a member initializer is not provided for a member object of a class, the object's __________ is called
  1178.  default constructor
  1179.  constructor
  1180.  creator
  1181.  initializer
  1182.  no ideas
  1183.  A member function should be declared static if it does not access __________ class members
  1184.  non-static
  1185.  dynamic
  1186.  unstable
  1187.  flexible
  1188.  no ideas
  1189.  Member objects are constructed __________ their enclosing class object
  1190.  before
  1191.  after
  1192.  in a middle
  1193.  properly
  1194.  no ideas
  1195.  The __________ operator reclaims memory previously allocated by new.
  1196.  delete
  1197.  clear
  1198.  terminate
  1199.  execute
  1200.  remove
  1201.  Find the errors in the following class and explain how to correct them:
    class Example
    {
    public:
    Example( int y = 10 )
    : data( y )
    {
    // empty body
    } // end Example constructor
    int getIncrementedData() const
    {
    return data++;
    } // end function getIncrementedData
    static int getCount()
    {
    cout << "Data is " << data << endl;
    return count;
    } // end function getCount
    private:
    int data;
    static int count;
    }; // end class Example
  1202.  Error: The class definition for Example has two errors. The first occurs in function getIncrementedData. The function is declared const, but it modifies the object.
    Correction: To correct the first error, remove the const keyword from the definition of getIncrementedData.
    Error: The second error occurs in function getCount. This function is declared static, so it is not allowed to access any non-static member of the class.
    Correction: To correct the second error, remove the output line from the getCount definition.
  1203.  Error: The class definition for Example has one error. It occurs in function getIncrementedData. The function is declared const, but it modifies the object.
    Correction: To correct the error, remove the const keyword from the definition of getIncrementedData.
  1204.  Error: The class definition for Example has one error. It occurs in function getCount. This function is declared static, so it is not allowed to access any non-static member of the class.
    Correction: To correct the error, remove the output line from the getCount definition.
  1205.  no errors
  1206.  no ideas
  1207.  Input/output in C++ occurs as ____________ of bytes
  1208.  streams
  1209.  strings
  1210.  arrays
  1211.  no ideas
  1212.  no ideas
  1213.  The stream manipulators that format justification are_________, _________ and _______.
  1214.  left, right and internal
  1215.  center, left and right
  1216.  external, internal and direct
  1217.  no ideas
  1218.  no ideas
  1219.  Member function _________ can be used to set and reset format state
  1220.  flags
  1221.  signals
  1222.  formatters
  1223.  repeaters
  1224.  no ideas
  1225.  Most C++ programs that do I/O should include the _________ header file that contains the declarations required for all stream-I/O operations.
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  no ideas
  1231.  When using parameterized manipulators, the header file ____________ must be included
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  no ideas
  1237.  Header file __________ contains the declarations required for user-controlled file processing
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  no ideas
  1243.  The ostream member function ___________ is used to perform unformatted output
  1244.  write
  1245.  read
  1246.  cout
  1247.  cin
  1248.  no ideas
  1249.  Input operations are supported by class __________.
  1250.  istream
  1251.  fstream
  1252.  ifile
  1253.  sinput
  1254.  no ideas
  1255.  Outputs to the standard error stream are directed to either the ___________ or the ___________ stream object
  1256.  cerr or clog
  1257.  error or log
  1258.  cout or cin
  1259.  error.out or log.out
  1260.  no ideas
  1261.  Output operations are supported by class ___________.
  1262.  ostream
  1263.  output
  1264.  iostream
  1265.  stream.out
  1266.  no ideas
  1267.  The symbol for the stream insertion operator is ____________.
  1268.  <<
  1269.  >>
  1270.  &
  1271.  [ ]
  1272.  @
  1273.  The four objects that correspond to the standard devices on the system include _________, _________, __________ and ___________.
  1274.  cin, cout, cerr and clog
  1275.  in, out, err and log
  1276.  std.int, std.out, std.err and std.log
  1277.  no ideas
  1278.  no ideas
  1279.  The symbol for the stream extraction operator is __________
  1280.  >>
  1281.  <<
  1282.  $
  1283.  &
  1284.  #
  1285.  The stream manipulators ___________, __________ and ___________ specify that integers should be displayed in octal, hexadecimal and decimal formats, respectively
  1286.  oct, hex and dec
  1287.  O, H and D
  1288.  octi, hexi and deci
  1289.  no ideas
  1290.  no ideas
  1291.  When used, the _________ stream manipulator causes positive numbers to display with a plus sign.
  1292.  showpos
  1293.  show
  1294.  place
  1295.  where_is
  1296.  no ideas
  1297.  The stream member function flags with a long argument sets the flags state variable to its argument and returns its previous value.
  1298.  false
  1299.  true
  1300.  no ideas
  1301.  no ideas
  1302.  no ideas
  1303.  The stream insertion operator << and the stream-extraction operator >> are overloaded to handle all standard data typesincluding strings and memory addresses (stream-insertion only)and all user-defined data types.
  1304.  false
  1305.  true
  1306.  no ideas
  1307.  no ideas
  1308.  no ideas
  1309.  The stream member function flags with no arguments resets the stream's format state
  1310.  false
  1311.  true
  1312.  no ideas
  1313.  no ideas
  1314.  no ideas
  1315.  The stream extraction operator >> can be overloaded with an operator function that takes an istream reference and a reference to a user-defined type as arguments and returns an istream reference.
  1316.  true
  1317.  false
  1318.  no ideas
  1319.  no ideas
  1320.  no ideas
  1321.  The stream insertion operator << can be overloaded with an operator function that takes an istream reference and a reference to a user-defined type as arguments and returns an istream reference
  1322.  false
  1323.  true
  1324.  no ideas
  1325.  no ideas
  1326.  no ideas
  1327.  Input with the stream extraction operator >> always skips leading white-space characters in the input stream, by default
  1328.  true
  1329.  false
  1330.  no ideas
  1331.  no ideas
  1332.  no ideas
  1333.  The stream member function rdstate returns the current state of the stream
  1334.  true
  1335.  false
  1336.  no ideas
  1337.  no ideas
  1338.  no ideas
  1339.  The cout stream normally is connected to the display screen
  1340.  true
  1341.  false
  1342.  no ideas
  1343.  no ideas
  1344.  no ideas
  1345.  The stream member function good returns TRUE if the bad, fail and eof member functions all return false
  1346.  true
  1347.  false
  1348.  no ideas
  1349.  no ideas
  1350.  no ideas
  1351.  The cin stream normally is connected to the display screen
  1352.  false
  1353.  true
  1354.  no ideas
  1355.  no ideas
  1356.  no ideas
  1357.  If a nonrecoverable error occurs during a stream operation, the bad member function will return TRue
  1358.  true
  1359.  false
  1360.  no ideas
  1361.  no ideas
  1362.  no ideas
  1363.  Output to cerr is unbuffered and output to clog is buffered
  1364.  true
  1365.  false
  1366.  no ideas
  1367.  no ideas
  1368.  no ideas
  1369.  Stream manipulator showpoint forces floating-point values to print with the default six digits of precision unless the precision value has been changed, in which case floating-point values print with the specified precision
  1370.  true
  1371.  false
  1372.  no ideas
  1373.  no ideas
  1374.  no ideas
  1375.  The ostream member function put outputs the specified number of characters
  1376.  false
  1377.  true
  1378.  no ideas
  1379.  no ideas
  1380.  no ideas
  1381.  The stream manipulators dec, oct and hex affect only the next integer output operation
  1382.  false
  1383.  true
  1384.  no ideas
  1385.  no ideas
  1386.  no ideas
  1387.  By default, memory addresses are displayed as long integers
  1388.  false
  1389.  true
  1390.  no ideas
  1391.  no ideas
  1392.  no ideas
  1393.  Output the string "Enter your name: "
  1394.  cout << "Enter your name: ";
  1395.  cin << "Enter your name: ";
  1396.  cout >> "Enter your name: ";
  1397.  no ideas
  1398.  no ideas
  1399.  Use a stream manipulator that causes the exponent in scientific notation and the letters in hexadecimal values to print in capital letters
  1400.  cout << uppercase;
  1401.  cout >> uppercase;
  1402.  cin>>uppercase;
  1403.  no ideas
  1404.  no ideas
  1405.  Output the address of the variable myString of type char *
  1406.  cout << static_cast< void * >( myString );
  1407.  cout << static_cast< void >( myString );
  1408.  cout << void * ( myString );
  1409.  no ideas
  1410.  no ideas
  1411.  Use a stream manipulator to ensure floating-point values print in scientific notation
  1412.  cout << scientific;
  1413.  cout << setprecision(2)<<fixed;< li=""></fixed;<>
  1414.  no ideas
  1415.  no ideas
  1416.  no ideas
  1417.  Output the address in variable integerPtr of type int *.
  1418.  cout << integerPtr;
  1419.  cout << &integerPtr;
  1420.  cout << * integerPtr;
  1421.  no ideas
  1422.  no ideas
  1423.  Use a stream manipulator such that, when integer values are output, the integer base for octal and hexadecimal values is displayed.
  1424.  cout << showbase;
  1425.  cout << &showbase;
  1426.  cout << Hshowbase;
  1427.  no ideas
  1428.  no ideas
  1429.  Output the value pointed to by floatPtr of type float *.
  1430.  cout << *floatPtr;
  1431.  cout << floatPtr;
  1432.  cout << &floatPtr;
  1433.  no ideas
  1434.  no ideas
  1435.  Use a stream member function to set the fill character to '*' for printing in field widths larger than the values being output. Write a separate statement to do this with a stream manipulator
  1436.  cout.fill( '*' );
    cout << setfill( '*' );
  1437.  fill( '*' );
    cout << fill( '*' );
  1438.  cout( '*' );
    cout << set.fill( '*' );
  1439.  no ideas
  1440.  no ideas
  1441.  Output the characters '0' and 'K' in one statement with ostream function put
  1442.  cout.put( '0' ).put( 'K' );
  1443.  put( '0' ).put( 'K' );
  1444.  no ideas
  1445.  no ideas
  1446.  no ideas
  1447.  Member function read cannot be used to read data from the input object cin
  1448.  false
  1449.  true
  1450.  no ideas
  1451.  no ideas
  1452.  no ideas
  1453.  The programmer must create the cin, cout, cerr and clog objects explicitly
  1454.  false
  1455.  true
  1456.  no ideas
  1457.  no ideas
  1458.  no ideas
  1459.  A program must call function close explicitly to close a file associated with an ifstream, ofstream or fstream object.
  1460.  false
  1461.  true
  1462.  no ideas
  1463.  no ideas
  1464.  no ideas
  1465.  If the file-position pointer points to a location in a sequential file other than the beginning of the file, the file must be closed and reopened to read from the beginning of the file
  1466.  false
  1467.  true
  1468.  no ideas
  1469.  no ideas
  1470.  no ideas
  1471.  The ostream member function write can write to standard-output stream cout
  1472.  true
  1473.  false
  1474.  no ideas
  1475.  no ideas
  1476.  no ideas
  1477.  Data in sequential files always is updated without overwriting nearby data
  1478.  false
  1479.  true
  1480.  no ideas
  1481.  no ideas
  1482.  no ideas
  1483.  Searching all records in a random-access file to find a specific record is unnecessary
  1484.  true
  1485.  false
  1486.  no ideas
  1487.  no ideas
  1488.  no ideas
  1489.  Records in random-access files must be of uniform length
  1490.  false
  1491.  true
  1492.  no ideas
  1493.  no ideas
  1494.  no ideas
  1495.  Member functions seekp and seekg must seek relative to the beginning of a file
  1496.  false
  1497.  true
  1498.  no ideas
  1499.  no ideas
  1500.  no ideas
  1501.  A selection sort application would take approximately ________ times as long to run on a 128-element vector as on a 32-element vector.
  1502.  16, because an O(n2) algorithm takes 16 times as long to sort four times as much information
  1503.  32, because an O(n2) algorithm takes 32 times as long to sort four times as much information
  1504.  no ideas
  1505.  no ideas
  1506.  no ideas
  1507.  The efficiency of merge sort is ______
  1508.  O(n log n).
  1509.  O (n2)
  1510.  no ideas
  1511.  no ideas
  1512.  no ideas
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  




1. тема постоянного искусственного заснежения обеспечивает стабильное снежное покрытие
2. Тема- Уровни коммуникации
3. виробничих майстернях навчальних закладів системи загальної середньої освіти Ці Правила встановлюю
4. тема Доказать что результат воспитания ~ воспитанность Прокомментировать соотношение обучения и вос
5. Государственная служба как деятельность
6. Тема 12. Організація інформаційного обслуговування на підприємстві готельного господарства
7. сырьевой университет ldquo;Горныйrdquo; ИЗМЕРЕНИЕ ПАРАМЕТРОВ МИКРОКЛИМАТА Методические указани
8. кредитной политики- экономическое содержание теоретические подходы к анализу
9. на тему- Обґрунтування господарських рішень щодо рівня ціни на окремі види продукції на прикладі ПСК
10. Северный Арктический федеральный университет Институт экономики Кафедра менеджмента.
11. ДНЕПРОПЕТРОВСКАЯ МЕДИЦИНСКАЯ АКАДЕМИЯ МИНИСТЕРСТВА ЗДРАВООХРАНЕНИЯ УКРАИНЫ.
12. Переклад 6.020303бакалавр та 7
13. протосоціологічний триває починаючи з часів Стародавнього світу до середини XIX ст
14. Тема- Анализ факторов производства 1 Производственная функция и способы её анализа 2 Особенности анализа
15. Тема- Административные организационнораспорядительные методы менеджмента Постоянные распорядительные
16. РЕФЕРАТ дисертації на здобуття наукового ступеня кандидата економічних наук КИЇВ ~2
17. Заповедники Беларуси
18. Перевезення вантажів залізничним транспортом в Україні регулюються Статутом залізниць України Правилами
19. последнему морю
20. Управление качеством продукции