Practice Question and Answer
8Q: Who has been appointed as Secretary to new President Ram Nath Kovind ? 1394 05b5cc6cee4d2b4197774e2be
5b5cc6cee4d2b4197774e2be- 1Sanjay Kotharitrue
- 2Gopal Baglayfalse
- 3Bharat Lalfalse
- 4Ashok Malikfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "Sanjay Kothari"
Explanation :
Answer: A) Sanjay Kothari Explanation: Sanjay Kothari, Chairman of Public Enterprises Selection Board, has been appointed as Secretary to President-elect Ram Nath Kovind.
Q: Chola Empire was divided into ____ 1757 05b5cc6cee4d2b4197774e2b9
5b5cc6cee4d2b4197774e2b9- 1Mandalams, Nadu, Avanti & Kurramfalse
- 2Mandalams, Nadu, Malkhand & Kurramfalse
- 3Avanti, Nadu, Malkhand & Kurramfalse
- 4Mandalams, Nadu,Kurram & Valanadutrue
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 4. "Mandalams, Nadu,Kurram & Valanadu"
Explanation :
Answer: D) Mandalams, Nadu,Kurram & Valanadu Explanation:
Q: What is the output after compile and run the following code ? int Output = 10;boolean b = false;if((b == true) && ((Output += 10) == 20)){ System.out.println("We are equal " + Output);}else{ System.out.println("Not equal! " + Output);} 1306 05b5cc6cee4d2b4197774e2b4
5b5cc6cee4d2b4197774e2b4- 1Compilation and output of "We are equal 10"false
- 2Compilation and output of "Not equal! 10"true
- 3Compilation error, attempting to perform binary comparison on logical data typefalse
- 4Compilation and output of "Not equal! 20"false
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 2. "Compilation and output of "Not equal! 10""
Explanation :
Answer: B) Compilation and output of "Not equal! 10" Explanation: The output will be "Not equal! 10". Please note that && is logical AND operator. If first operand before (&&) is false then the other operand will not be evaluated. This illustrates that the Output +=10 calculation was never performed because processing stopped after the first operand was evaluated to be false. If you change the value of b1 to true, processing occurs as you would expect and the output would be "We are equal 20".
Q: Both Joyel and Susy share a Windows 10 tablet with different user accounts. Joyel needs to access some files in Susy’s Documents folder. How can he do this ? 1368 05b5cc6cee4d2b4197774e2af
5b5cc6cee4d2b4197774e2af- 1Joyel can access the files only if he has administrative rightstrue
- 2Susy must choose to make the Documents folder Public for Joyel to see themfalse
- 3Joyel can, by default, see and access the files in any Documents folder on this computerfalse
- 4Joyel cannot access those files without Susy moving them to another folderfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "Joyel can access the files only if he has administrative rights"
Explanation :
Answer: A) Joyel can access the files only if he has administrative rights Explanation:
Q: In the following pieces of code, B and D will compile without any error. True or false ? A: StringBuffer sb1 = "abcd"; B: Boolean b = new Boolean("abcd"); C: byte b = 255; D: int x = 0x1234; E: float fl = 1.2; 1389 05b5cc6cee4d2b4197774e2ac
5b5cc6cee4d2b4197774e2ac- 1TRUEtrue
- 2FALSE Answer & Explanation Answer:false
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 1. "TRUE"
Explanation :
Answer: A) TRUE Explanation: The code segments B and D will compile without any error. A is not a valid way to construct a StringBuffer, you need to create a StringBuffer object using "new". B is a valid construction of a Boolean (any string other than "true" or "false" to the Boolean constructor will result in a Boolean with a value of "false"). C will fail to compile because the valid range for a byte is -128 to +127 (i.e., 8 bits, signed). D is correct, 0x1234 is the hexadecimal representation in java. E fails to compile because the compiler interprets 1.2 as a double being assigned to a float (down-casting), which is not valid. You either need an explicit cast, as in "(float)1.2" or "1.2f", to indicate a float.
Q: In budget 2017-18, the fund allocation for Deen Dayal Upadhyay Gram Jyoti Yojana Scheme ? 1312 05b5cc6cee4d2b4197774e2a7
5b5cc6cee4d2b4197774e2a7- 1Rs. 6815 Croresfalse
- 2Rs. 5550 Croresfalse
- 3Rs. 4814 Crorestrue
- 4Rs. 2115 Croresfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Rs. 4814 Crores"
Explanation :
Answer: C) Rs. 4814 Crores Explanation:
Q: Which of the following are displayed in File Explorer ? 5130 05b5cc6cee4d2b4197774e2a2
5b5cc6cee4d2b4197774e2a2- 1Only OneDrivefalse
- 2Only Storage locationsfalse
- 3Both A & Btrue
- 4Hardware devices such as monitors, printers, and camerasfalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Both A & B"
Explanation :
Answer: C) Both A & B Explanation: Storage locations and OneDrive are both displayed in File Explorer.
Q: Crack the Relation Logical Puzzle ? 1426 05b5cc6cee4d2b4197774e29d
5b5cc6cee4d2b4197774e29d- 1Sonfalse
- 2Himselffalse
- 3Fathertrue
- 4Unclefalse
- Show AnswerHide Answer
- Workspace
- SingleChoice
Answer : 3. "Father"
Explanation :
Answer: C) Father Explanation: Man's Father is Madhu's Father's Son => Madhu itself. So the Man in the photograph is Madhu's son.

