Google Answers Logo
View Question
 
Q: Java and C++ programming ( No Answer,   1 Comment )
Question  
Subject: Java and C++ programming
Category: Computers
Asked by: podukandi-ga
List Price: $15.00
Posted: 24 May 2005 11:13 PDT
Expires: 25 May 2005 06:27 PDT
Question ID: 525083
1) All dispatch in Java (that we spoke about in class) is dynamic
(a)	true
(b)	false
(c)	none of the above

2) Based on our discussion of Allan Kay?s criteria for Object
Orientation, is  it plausible that said the following: ?I invented the
term 'object-oriented' and I can tell you I did not have C++ in mind.?
a)	true
b)	false

3)  In Java it?s possible to have heap dynamic objects.
a) true
b) false

4)	Left recursion can be removed from the following grammar (using
only the technique we discussed in class.

	E -> 	E F   |   a
	F -> 	FG   | G  |   b
G ->	E   |   c
	
a) true
b) false

5)	An abstract class in Java may contain implementation code for the
methods it defines
a)	true
b)	false

6)	 In Java all problems with casts  are detected at compile time.
a)	true
b)	false

7)	 In the expression  M[M[i]] = M[i],   the sub-expression  M[i]  is a
a)	lvalue
b)	rvalue
c)	both
d)	neither


8)	Consider the following C++ code fragment:

		int  q[10];
		int* p = &q;
 		int k;

	in the expression below, the sub-expression  p is a
				k = *p++;
a)	lvalue
b)	rvalue
c)	both
d)	neither

9)	There is a Reflection mechanism in C++:
a)	true
b)	false

10)	 All classes have a superclass in C++
a)	true
b)	false

11)	 All classes have a superclass in Java
a)	true
b)	false

12)	 If two classes, say A and B, are in the same package, then the
methods  for the class A can see all the methods and fields of class B
and vice versa.
a)	true
b)	false
13)	 In C++ private data members can NEVER be altered except  through
the public member functions  associated with the class
a)	true
b)	false

14)	In Java private data members can NEVER be altered except  through
the public member functions  associated with the class
a)	true
b)	false
Answer  
There is no answer at this time.

Comments  
Subject: Re: Java and C++ programming
From: drewmwillis-ga on 24 May 2005 18:37 PDT
 
Glad to see a student working their hardest....

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