Questions

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);
}

A) Compilation and output of "We are equal 10" B) Compilation and output of "Not equal! 10"
C) Compilation error, attempting to perform binary comparison on logical data type D) Compilation and output of "Not equal! 20"
 
Answer & 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".

Report Error

View Answer Report Error Discuss

Filed Under: Oracle Certification
Job Role: Analyst

12 13076
Q:

Who was the last Mughal Emperor of India?

A) Akbar II B) Bahadur Shah II
C) Alamgir II D) Shah Alam II
 
Answer & Explanation Answer: B) Bahadur Shah II

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

41 13076
Q:

Hindu rate of growth refers to the rate of growth of

A) GDP B) Population
C) Foodgrains D) Per captain income
 
Answer & Explanation Answer: A) GDP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

21 13051
Q:

How many Indian states share border with Myanmar  ?

A) 6 B) 7
C) 3 D) 4
 
Answer & Explanation Answer: D) 4

Explanation:

The four northeast Indian states share 1,643-km border with Myanmar – Arunachal Pradesh, Nagaland, Mizoram and Manipur. It is in news recently, because the Indian Government has set up an expert committee to examine the rules which allow free movement of Indian and Myanmarese citizens within 16 kms of the border, but are exploited by militants for smuggling arms, drugs, and fake Indian currency. The committee will be headed by the special secretary (Internal Security) in the Ministry of Home Affairs. The committee will give its report for uniform and effective implementation of free movement regime within 3 months. It will also prepare standard operating procedures common for all the four states so that militants, criminals and contraband are filtered at the border without causing inconvenience to genuine people.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk

36 13040
Q:

What is MESI?

Answer

The MESI protocol is also known as illinois protocol due to its development the University of illinois at Urbana-Champaign and MESI is a widely used cache coherency and memory coherence protocol.


MESI is the most common which supports write-back cache. its use in personal computers became widespread with the introduction of intel's pentium processor to "support the more efficient write-back cache in addition to the write-through cache previously used by the Intel 486 processor"/

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

21 13038
Q:

The Basic Architecture of Computer was developed by

A) Charles Babbage B) Blaise Pascal
C) Garden Moore D) John Von Neumann
 
Answer & Explanation Answer: D) John Von Neumann

Explanation:

Computer Architecture refers to how a computer system is designed and what technologies it is compatible with. In brief, Computer architecture is a specification detailing how a set of software and hardware technology standards interact to form a computer system or platform.  

                                     comp1518074667.jpg image 

The Von Neumann Architecture, which is also known as the Von Neumann Model and Princeton architecture, is a computer architecture based on the 1945 description of computer by the mathematician and physicist John von Neumann.

Report Error

View Answer Report Error Discuss

19 13029
Q:

Among the following who is given the credit of carrying Jainism in south India

A) Sudharmana B) Indrabhuti
C) Bhadrabahu D) Sthulabhadra
 
Answer & Explanation Answer: C) Bhadrabahu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

20 13024
Q:

At which of its session, did the Congress officially accept the ' Socialistic Pattern of society '

A) Bombay Session of 1953 B) Avadi Session of 1955
C) Calcutta Session of 1957 D) Nagpur Session of 1959
 
Answer & Explanation Answer: B) Avadi Session of 1955

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

18 13023