Assistant Programmer 2016 [MCQ]

86. Why is private variables used in Java Programming?

[Assistant Programmer 2016 [MCQ] : 2016]

1. Chance of reducing misuse by the fellow programmers

1

2. Data loss prevention

2

3. All of the above

3

4. polymorphism

4
Answer
87. In Java, which one will be used for comparing whether the two String object str 1 and str2 are same

[Assistant Programmer 2016 [MCQ] : 2016]

1. str1 = str2

1

2. strl.equalsignoreCase(str2)

2

3. strl==str2

3

4. All of the above

4
Answer
88. Which of the following statements is true?

[Assistant Programmer 2016 [MCQ] : 2016]

1. This program will incur some compile errors.

1

2. No compile error but cannot be run

2

3. It is not a valid C program

3

4. None of the above

4
Answer
89. What is the minimum length of character array argv in the above code?

[Assistant Programmer 2016 [MCQ] : 2016]

1. 0

1

2. 1

2

3. Underfined

3

4. -1

4
Answer
90. #include is a

[Assistant Programmer 2016 [MCQ] : 2016]

1. preprocessor directive and resolved by compiler at the beginning phase of compilation

1

2. inline function

2

3. constant declaration

3

4. normal c statement

4
Answer