symphonyteleca
Company
Category
8)What will be the output of the program?
public class Test
{
public static void main(String[] args)
{
int x = 0;
assert (x > 0) ? "assertion failed" : "assertion passed" ;
System.out.println("finished");
}
}
9)Which of the following concept of oops allows compiler to insert arguments in a function call if it is not specified?
A. Call by value
B. Call by reference
C. Default arguments
D. Call by pointer
10)Which of the following factors supports the statement that reusability is a desirable feature of a language?
A. It decreases the testing time.
B. It lowers the maintenance cost.
C. It reduces the compilation time.
D. Both A and B.
11)Which of the following access specifier is used as a default in a class definition?
12)what is while and do while?
a) loop statement
b) condition statement
13)i want to store value 1 to 100 which one is the best way to store ?
14)Which of the following statements is correct when a class is inherited privately?
a) Public members of the base class become protected members of derived class.
B. Public members of the base class become private members of derived class.
C. Private members of the base class become private members of derived class.
D. Public members of the base class become public members of derived class.
15)Which one is correct ?
a) Request and Analysis->Design->Coding->Testing->Release
b) Request and Analysis->Coding->Design->Testing->Release
Read Solution (Total 2)
-
- 8) Program ll throw an error... Compilation fails...
We cant use ternary operator with assertion...
9) C) Default Arguments
If we define a function with def arg, we dont need to pass value while calling that function...If we specify value , that value ll be considered... Otherwise Def value ll be considered...
10) D) Both A nd B
11) Private
12) b) Conditional statements
13) We can store it in ARRAYS... Its a collection of variables of same datatype...
14) b) Public members of the base class become private members of derived class.
15) a) Request and Analysis->Design->Coding->Testing->Release
Since Phases of Software development is Analysis,design,coding nd finally testing - 10 years agoHelpfull: Yes(11) No(0)
- 8) Program ll throw an error... Compilation fails...
We cant use ternary operator with assertion...
9) C) Default Arguments
10) D) Both A nd B
If we define a function with def arg, we dont need to pass value while calling that function...If we specify value , that value ll be considered... Otherwise Def value ll be considered...
11) Private
12) b) Conditional statements
13) We can store it in ARRAYS... Its a colection of variables of same datatype...
14) b) Which of the following factors supports the statement that reusability is a desirable feature of a language?
15) a) Request and Analysis->Design->Coding->Testing->Release
Since Phases of Software development is Analysis,design,coding nd finally testing - 10 years agoHelpfull: Yes(0) No(1)
symphonyteleca Other Question