Answered step by step
Verified Expert Solution
Question
1 Approved Answer
University of Business Computer Programming-2 IT 203 UBT College of Engineering Note: During the exam, any notation like this (S) Question-1 (10 marks): select only
University of Business Computer Programming-2 IT 203 UBT College of Engineering Note: During the exam, any notation like this (S) Question-1 (10 marks): select only on 1. To write comments in java in a single line you can use Sn. ) is standing for (System.out. ) e choice in the following c) f comments a)/* comments */ b) //comments 2. A[4] int 15; = A[y] = Math.pow( 2,2) -1 ; After executing the giving statements, the value of A[4] wll be: a)hs c)e d)Unknown e)14 3. On of the following statements is illegal and it will give a syntax error x=>5 class is used to get some data randomly: a) Random b)Scanner 5. How can I write a condition in Java to represent (y not-equal 5): c)System d)Math A class of Airplane has two fields; leftEngine and rightEngine. These two fields are objects of Engine class. Thus we can say that the relationship between Airplane and Engine is: a)has-a relationship b)is-a relationship c)similar he keyword that makes any field of a class can be accessed from outside of the class ithout create an object: )protected b)int c)public d)private )static e keyword that makes any field of a class can be accessed only inside the class is: protected b)int c)public d)private e)static ch one of the following loops can be used to guarantee that at least one iteration be executed? o-while b)while c)for d)switch keyword that is used to stop and exit the loop is: xt b)break c)stop d)continue e)do
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started