Webjava.util java.sys Question 2 Give the output of Math.sqrt (x); when x = 9.0 3 3.0 3.00 All of these Question 3 Give the output of Math.ceil (46.6). 46.6 46.5 47.0 46.0 Question 4 Give the output of Math.abs (x); when x = -9.99 -9.99 9.99 0.99 None of these Question 5 Which of the following is a method to find the square root of a number? WebJava Output Program MCQ Questions and Answers: Here learn quiz questions for Java Output Program, this section contain most important objective questions for Competitive Exam like Gate exam. you can also download pdf of 50 mcq questions. Page: 2/3 11) What is the output of this program? class mainclass { public static void main (String args []) {
Questions: 1. What is the output from the following lines of code?...
WebApr 10, 2024 · Algorithm to Find Sum of Natural Numbers. STEP 1 − Initialize three variables which denote the number of natural numbers to find sum, a counter variable, a … WebJava Pattern Programs Java Series Programs Java Number Programs (ICSE Classes 9 / 10) Java Number Programs (ISC Classes 11 / 12) Output Questions for Class 10 ICSE Computer Applications Algorithms & Flowcharts for ICSE Computers ICSE Class 8 Computers Differentiate Between the Following; CBSE Textbook Solutions lying in bed boy
Top 10 Java tricky interview questions - Java2Blog
WebJun 4, 2024 · public static void main (String [] args) { int num, count=0; double total =0, avg; for (int i = 1; i <= 3; i++) { num = Integer.valueOf (JOptionPane.showInputDialog ("Enter number "+ count++)); total += num; } avg = total / count; JOptionPane.showMessageDialog (null, "The average is: " + (double)Math.round (avg * 100) / 100); } Share WebAbout Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features NFL Sunday Ticket Press Copyright ... WebHere are 1000 MCQs on Java Programming (Chapterwise). 1. Who invented Java Programming? a) Guido van Rossum b) James Gosling c) Dennis Ritchie d) Bjarne Stroustrup View Answer 2. Which statement is true about Java? a) Java is a sequence-dependent programming language b) Java is a code dependent programming language kings wimbledon admissions