Quiz – Variables

Posted on Leave a commentPosted in Java Quiz
Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1Which of following is the right data type for storing values M or F. Where M represents [...]

Java Getting Started Quiz

Posted on Leave a commentPosted in Java Quiz
Java - Getting Started Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1Command to compile a Test.java program isAjavac Test.javaBcompile Test.javaCjava Test.javaDjavap Test.javaQuestion 1 Explanation:  [...]

Interface Quiz

Posted on Leave a commentPosted in Java Quiz
Abstraction Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1Interface concept in java belongs to which of following OOP Concepts?AAbstractionBPolymorphismCEncapsulationDInheritanceQuestion 1 Explanation:  Interfaces can contain [...]

Arrays Quiz

Posted on Leave a commentPosted in Java Quiz
Arrays Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1Given a 2D array of integers (int a[][]) that has been instantiated and initialized appropriately. What [...]

Loops Quiz

Posted on Leave a commentPosted in Java Quiz
Loops Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1How many times will "Being Zero" be printed on running this code? public class BeingZeroLoops { [...]

Conditional Statements

Posted on Leave a commentPosted in Java Quiz
Decision Control Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1What will be the result of compiling and executing following code? public class BeingZero { [...]

Data Types and IO

Posted on Leave a commentPosted in Java Quiz
Data Types and Input Output Please wait while the activity loads. If this activity does not load, try refreshing your browser. Also, this page requires javascript. Please visit using a browser with javascript enabled. If loading fails, click here to try again Question 1What is the scenario in which we would prefer to use System.out.printf [...]