July 16, 2021 in C and CPP
The deployment diagram represents ________ view of a use case model.
1.9 The deployment diagram represents ________ view of a use case model.
A) Physical
B) Logical
C) Process
D) All
July 16, 2021 in C and CPP
1.9 The deployment diagram represents ________ view of a use case model.
A) Physical
B) Logical
C) Process
D) All
July 16, 2021 in C and CPP
1.8 Partitions in activity diagram are basically known as ________.
A) Grouplens
B) Swimlens
C) Workflow
D) None
July 16, 2021 in C and CPP
1.7 When repaint( ) is invoked for a component, the AWT invokes the __ method.
A) draw( )
B) update( )
C) paint( )
D) show( )
July 16, 2021 in C and CPP
1.6 Which of the following methods belong to the String class?
A) length( )
B) compareTo()
C) equals( )
D) All of the above
July 16, 2021 in C and CPP
1.5 Consider the following class definitions:
class mathstest
{
Student student1;
}
class Student
{
String name;
}
This code represents:
A) an ‘is a’ relationship
B) a ‘has a’ relationship
C) both
D) neither
July 16, 2021 in C and CPP
1.4 What is the error in the following class definition?
abstract class MyTest
{
abstract sum (int x, int y) { }
}
A) Class header is not defined properly
B) Constructor is not defined
C) Method is not defined properly
D) No error
July 16, 2021 in C and CPP
1.3 Consider the following code
if ( number >= 0)
if (number > 0)
System.out.println(“Number is positive”);
else
System.out.println(“Number is negative”);
What will be the output if number is equal to 0?
A) Number is negative
B) Number is positive
C) Both A) and B)
D) None of the above
July 16, 2021 in C and CPP
1.2 Which of the following is correct?
A) int a = 16, a>>2 = 4
B) int b = -8, b>>1 = -4
C) int a = 16, a>>>2 = 4
D) All of the above
July 16, 2021 in C and CPP
1.1 The minimum value of char type variable is
A) ‘\u0020’
B) ‘\u00ff’
C) ‘ ’
D) ‘\u0000’
July 16, 2021 in C and CPP
c) What is a pointer? How it can be used with objects of a class? Explain this pointer.