knowledge of c++

are these true or false. can someone help me

1.A function prototype tells you all you need to know to write a call to the function.

2. A local variable does not have its scope.

3. In C++, the default function calling for interger parameter is call-by-value.

4. In C++, we can overload both functions and operators.

5. A non-static data member of a class represents “object-wide” information.

6. Overloading functions is not an example of polymorphism.

7. private members can be directly accessed in the program except within the definition of a member function.

8. When the computer encounters a break statement, the switch statement ends.

9. C++ data types obey implicit type conversions rules.

10. A friend function is also a member function which has access to the private members.
No. You must do your own homework. These questions are all extremely elementary. If you cannot answer them yourself then you might want to change majors.
A friend function is also a member function which has access to the private members.
This always makes me smile. "C++: where your friends have access to your private members."
Last edited on
No offence, but as Duoas said, they are pretty easy. I mean, I can do them...

You have to do it yourself, or what are you going to learn?

Good one Helios =]
Dont post homework, your cheating your self you lazy piece a crap
Oh I already posted here. Jloundy calm down xD
hahahaha... yes that was good... :D
Last edited on
You can find the answers of these questions in the tutorial according to titles. It's really easy.
For example, to answer #10, go to - Friendship and inheritance: http://www.cplusplus.com/doc/tutorial/inheritance/
Do not worry Webby,
As Larry Page said : "I did it because... I can" .
when you don't know... proudness makes you say "is too elementary...."
I'll give you the answers on monday after the test.
> proudness makes you say "is too elementary...."

No, actually, it is an true desire to see him learn something for himself.

So, you are really going to cheat him out of learning? As it stands, I would refuse to hire either of you -- I couldn't trust you to do even an elementary programming job. After all, you can't think for yourselves, apparently...
Mouse, Duoas is right. I wouldn't post my maths homework or physics homework on a relative forum and expect to get anything other than negative responses back.

The people that ask for their homework done for them don't even ask. If you look; he's never once said 'please' in his post, or even asked. Essentially s/he has posted 'Hey guys, this is my homework. Do it for me.'

I think it's fair to help him do the work, just not to give him the answers (tell the OP how it is figured out and not the actual answers). But in this case, as it is true/false answers it doesn't work.
when you don't know... proudness makes you say "is too elementary...."

This is so ignorant. Purely using logic and looking at duoas' post count surely you would assume that he clearly does know
Topic archived. No new replies allowed.