Google Answers Logo
View Question
 
Q: C ++ Programming Second Edition Author D.S. Malik ( No Answer,   3 Comments )
Question  
Subject: C ++ Programming Second Edition Author D.S. Malik
Category: Computers
Asked by: victorialisette-ga
List Price: $10.00
Posted: 05 Mar 2006 22:49 PST
Expires: 18 Mar 2006 23:48 PST
Question ID: 704101
I want to know about overloading function in programming C ++ Programming:
Second Edition
Author D.S. Malik:
 
I need these Question before Wednesday. I already answers but I'm not sure.
 
Which of the following functions overloads the funtion:
 
a). int myFunction (int a, double b)
b). int myFunction2 (char a,double b)
c). int myFunction (char a, double b)
d) int myFunction (2,3.0)
 
2-Question.
 
Which of the following prototypes is the most appropiate for a
function that receives a character letter grade and returns its
integer equivalent
on a four-point grading scale?
 
a). void intEquiv (char grade, int& value);
b)  void intEquiv (char grade, int value);
c) int intEquiv (char grade);
d) char intEquiv (int value);
 
3) Question:
Which of the following is a valid function call of the void function
functionName()?
 
a) a = b + fubctionName(0;
b) a = b + functionName(2);.
c.) a = b + c.functionName();
d) functionName();
 
The others Question about loop?
 
QuestionSuppouse you want to output a 8x7 table in wich each element
is the product of the row and column that it is in. The best structure
for this is:
 
a) a for loop inside a for loop
b) a while loop inside a for loop
c) a while... do loop inside a for loop
d) a for, a while, and a while...do loop inside a for loop 
 
Question:
 
To avoid an infinite loop
 
a) use the for loop exclusively
b) use the while loop exclusively
c) make sure the loop body alters the exit condition
d) make sure the lo body contains at least one output statement
Answer  
There is no answer at this time.

Comments  
Subject: Re: C ++ Programming Second Edition Author D.S. Malik
From: california_blonde-ga on 05 Mar 2006 23:47 PST
 
I want to know about overloading function in programming C ++ Programming:
Second Edition
Author D.S. Malik:
 
I need these Question before Wednesday. I already answers but I'm not sure.
 
Which of the following functions overloads the funtion:
d) int myFunction (2,3.0)
 
2-Question.
 
Which of the following prototypes is the most appropiate for a
function that receives a character letter grade and returns its
integer equivalent
on a four-point grading scale?
c) int intEquiv (char grade);

 
3) Question:
Which of the following is a valid function call of the void function
functionName()?
d) functionName();
 
The others Question about loop?
 
QuestionSuppouse you want to output a 8x7 table in wich each element
is the product of the row and column that it is in. The best structure
for this is:
a) a for loop inside a for loop
 
Question:
 
To avoid an infinite loop
c) make sure the loop body alters the exit condition

//I do believe that these are the answers, though check to make sure
that 4 & 5 are correct.
              --Good Luck on your test
Subject: Re: C ++ Programming Second Edition Author D.S. Malik
From: petetawa-ga on 06 Mar 2006 22:21 PST
 
Which of the following functions overloads the funtion:
 
a). int myFunction (int a, double b)
c). int myFunction (char a, double b)
 
2-Question.
 
Which of the following prototypes is the most appropiate for a
function that receives a character letter grade and returns its
integer equivalent
on a four-point grading scale?
 
c) int intEquiv (char grade);
 
3) Question:
Which of the following is a valid function call of the void function
functionName()?
 
d) functionName();
 
The others Question about loop?
 
QuestionSuppouse you want to output a 8x7 table in wich each element
is the product of the row and column that it is in. The best structure
for this is:
 
a) a for loop inside a for loop
 
Question:
 
To avoid an infinite loop
 
a) use the for loop exclusively
Subject: Re: C ++ Programming Second Edition Author D.S. Malik
From: jaspreet123-ga on 07 Mar 2006 16:57 PST
 
1. You seem to be not clear for question 1. However from the
information available, I would say:
int myFunction (int a, double b)
int myFunction (char a, double b)

Function name should be same and the order / number of parameters
should be different.

2. int intEquiv (char grade);

3. functionName();

Other questions about loop:
1. a for loop inside a for loop
2. use the for loop exclusively

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy