Examlex

Solved

Consider the Following Statements.public Class Circle

question 45

Multiple Choice

Consider the following statements.public class Circle
{
Private double radius; public Circle()
{
Radius = 0.0;
} public Circle(double r)
{
Radius = r;
} public void set(double r)
{
Radius = r;
} public void print()
{
System.out.println(radius + " " + area + " "
+ circumference) ;
} public double area()
{
Return 3.14 * radius * radius;
} public double circumference()
{
Return 2 * 3.14 * radius;
}}Circle myCircle = new Circle() ;
Double r;Which of the following statements are valid in Java? (Assume that console is Scanner object initialized to the standard input device.)
(i)
R = console.nextDouble() ;
MyCircle.area = 3.14 * r * r;
System.out.println(myCircle.area) ;
(ii)
R = console.nextDouble() ;
MyCircle.set(r) ;
System.out.println(myCircle.area() ) ;

Understand the significance of schemes in Piaget's cognitive-developmental theory.
Describe the process of operant conditioning and its application in daily life.
Identify the stages of cognitive development according to Piaget.
Explain the importance of observational learning in behavior acquisition.

Definitions:

Related Questions