Thread: sumbody pls help me

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    3

    sumbody pls help me

    1. The function interface is:

    A) the function prototype
    B) the function header
    C) the function return type
    D) the function parameter list

    2. All functions must return a value.

    A) true
    B) false

    3. When writing an expression in C++ and using a function call in the expression, the function must:

    A) have a void return type
    B) have a return value
    C) not have any parameters
    D) have at least one parameter

    4. A C++ program contains the following code segment:



    string name; cout << endl << "Enter your name : "; cin >> name; cout << endl << "Your name is " << name;The input stream contains Steve OhlWhat happens when the code segment is executed?

    A) it fails to display any output
    B) it displays Your name is Steve Ohl
    C) it displays Your name is
    D) it displays Your name is Steve

    5. The block of programming code within a while loop will only execute when:

    A) the expression is evaluated to true
    B) the expression is evaluated to false
    C) the value of the expression is updated
    D) the value of the expression is initialised

    6. Which of the following is the equivalent of the logical expression:
    !A || B && !C

    A) ( !A || ( B && !C ))
    B) (!( A || B ) && !C )
    C) (!( A && C ) || B )
    D) (( A || !B ) && C )

    7. Arguments that are used for both input and output when passed to a function are passed by value.

    A) true
    B) false

    8. The statement
    cout << fixed << showpoint << setprecision (3);
    will display a floating point number to a precision of 3 decimal places.

    A) True
    B) false

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Good luck with your homework

    PS consider switching to a class where you are actually interested in learning the material.

  3. #3
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    All of these questions are very simple. Go look at the first 5 tutorials on this very site.

    Otherwise you should definetly drop your class before things get harder than multiple choice and true or false.
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Well, we finally got all the questions out of you, but you didn't post your initial answers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic port scanner code .. pls help ???
    By intruder in forum C Programming
    Replies: 18
    Last Post: 03-13-2003, 08:47 AM
  2. i dont know what to do. pls. help!!!!
    By Unregistered in forum C++ Programming
    Replies: 14
    Last Post: 03-14-2002, 03:24 PM
  3. help me pls..... :(
    By mocha_frap024 in forum C++ Programming
    Replies: 2
    Last Post: 02-22-2002, 10:46 AM
  4. pls help me!!
    By hanseler in forum C++ Programming
    Replies: 1
    Last Post: 12-05-2001, 08:46 PM
  5. Pls Help Me In This Question!!!
    By Joanna in forum Windows Programming
    Replies: 1
    Last Post: 10-20-2001, 02:05 PM