Cramster.com - Homework Solutions, Lecture Notes, Exams, and Free Online Homework Help
Sign Up Now! Login Customer Support
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Problem Solved.
    Home    
    Homework Help    
   Answer Board   
    Resources (Beta)    
   
Member's Topic Headline:

Urgent help!!!!!!!!!!!!!!!!!!:->MCQs on C++

Know the answer? Have a better solution? Share it.
Sign Up Now for FREE!
Join the thousands of students
getting ahead in their classes.
Member Testimonials

Question:

Advertisement:

Answer | Ask New Question | Customize Profile | Leaderboards | 
FAQ

Member's Avatar

Novice
Karma Points: 36
Respect (48%):
Date Posted: 7/23/2008 2:24:13 AM  Status: Closed
Urgent help!!!!!!!!!!!!!!!!!!:->MCQs on C++
Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:

Which of the following is true about streams?

 

  1. It is a sequence of bytes
  2. It is an ordered sequence
  3. All bytes can go through the stream simultaneously
  4. Bytes that enters first into the stream will go out at last

 A only     

  C only 

 A and B

  A and D


 

 

 

 

Consider the following code segment.

1.    String s1, s2;

2.     s1 = s2;

 

Which of the following will be called while executing code at line 2 ?

 

 Copy constructor

 Default constructor

 Assignment operator

 Parameterized constructor

 


 

Answers:

Member's Avatar

Mentor
Karma Points: 527
Date Posted: 7/23/2008 3:01:08 AM  Status: Live
Asker's Rating: Helpful   
Response:
hi frnd,

1)A and B
2)Assignment operator
3) cout is standard output and cerr is not a standard output
4)
Creates array of pointers to String objects
5)One
6)
Equal (==)
7)
Unreferenced memory
8)
get and write member functions of cout and cin objects are used to read a sentence from the keyboard and then print it on the screen.
9)
Buffer
10)
Parameterized constructor will be called for first 2 objects..

frnd i m nt sure..so plz consult  with others also..
shamy the great's Comment:
thanks


Member's Avatar

Mentor
Karma Points: 508
(SVITS , Indore)
Date Posted: 7/23/2008 3:34:39 AM  Status: Live
Asker's Rating: Somewhat Helpful   
Response:

Plz Do rate d solution !!

Which of the following is true about streams?

  1. It is a sequence of bytes
  2. It is an ordered sequence
  3. All bytes can go through the stream simultaneously
  4. Bytes that enters first into the stream will go out at last
Answer :  A and B


Consider the following code segment.

1.    String s1, s2;

2.     s1 = s2;

 Which of the following will be called while executing code at line 2 ?

 Assignment operator



Never hesitate to ask a question & Never fear of answering a question !!

Member's Avatar

Pupil
Karma Points: 61
Date Posted: 7/24/2008 12:55:02 AM  Status: Live
Asker's Rating: Somewhat Helpful   
Response:
 
I am sending only option answer
Question No.                                           Options
 
Question No.1                                         A
Question No.2                                         C
Question No.3                                         B
Question No.4                                         B
Question No.5                                         A
Question No.6                                         A
Question No.7                                         D
Question No.8                                         D
Question No.9                                         C
Question No.10                                       D



By reading or posting messages on these forums, you are agreeing to the Answer Board's Terms of Service and Conduct (TSC).


About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy

Cramster.com is not affiliated with any publisher. Book covers, title and author names appear for reference only.
Copyright © 2008 Cramster, Inc.