Question: Question Completion Status: QUESTION 1 Assuming that x=2 and y = 3, what does the following statement display? System.out.printf(Value of Wed + Wod is Midi.xy.






Question Completion Status: QUESTION 1 Assuming that x=2 and y = 3, what does the following statement display? System.out.printf("Value of Wed + Wod is Midi".xy. (x+x) O Value of 2 + 2 is 22 O Value of 5 is 2+3 @ Value of 2 + 3 is 5 O Value of 2 + 3 is 4 QUESTION 2 JAVA executable codes ended with O class obj exe cond rate and boriche Sauerstofu allar QUESTION 3 Which of the following is Modifiable Access Modifier? O Static O Private O Final O a &c QUESTION 4 Select statement shows a default constructor for class Bulb, Bulbo new Bulbo) public Bulbox class Bulbo) QUESTION 5 : QUESTION 5 The Java feature, "write once, run anywhere", means JAVA program is O Platform independent O Object-oriented Multithreaded Secured QUESTION 6 Given the following code: public class Account private double balances // instance variable that stores the balance constructor public Account( double initialBalance ) II validate that initialBalance is greater than .e; titis not balance is initialized to the default value e.e I initialBalance 0.8 balance initialBalance ll end Account constructor credit (add) an amount to the account public void credit( double amount balance = balance + amount, add amount to balance and method credit return the account balance public double getBalance return balance gives the value of balance to the calling method and method getbalance end class Account What is output by the following main method public static void massering args) caccount Act 15 byste cut.printf accountabilitat din account. aetaalance: Sout.printlnting 32.b to count balance Sauti balanceduntligetblanc Question Completion Status: QUESTION 7 Choose the correct statement Object is a template for a dass. o Object is an instance of a class. o Class is a template for an object. O B&C QUESTIONS Which of the following is a legal identifier: Bid O ?ld All of the above o None of the above QUESTION 9 The UML is used primarily to test object-oriented systems design object-oriented systems implement object-oriented systems Both A and B GHeSirendstomitrasalube.cA to To . Question Completion Status: QUESTION 10 A is a subroutine defined within a class to implement a behavior O object o class constructor method QUESTION 11 An is a variable defined within a class to store values: parameter attribute O object O argument QUESTION 12 Choose the CORRECT output JAVA statement? System.in.print): System.out.printing System.print System prino GS and submind aid and bure Set Rs QUESTION 13 What is the result of this expression? int x = (100 != 100)? 20:35; 20 0 32 O 12 35 QUESTION 14 Basic syntax for a class definition is public void className public class ClassName() public class className(} public className) Click Save and submit to love and subliek van glansen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
