Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Which of the following is NOT a loop structure? Select one: a. For b. While c. Switch d. Do while O How many times
Which of the following is NOT a loop structure? Select one: a. For b. While c. Switch d. Do while O How many times can i value be checked in the below code? public class Q7 [ } public static void main(String[] args) { int i = 10; do [ i-=2; System.out.print(i + "\t"); ] while (i > 5); } Select one: a. 678910 b. 10 86 c. 684 d. 864 Counter-controlled repetition is also known as Select one: a. loop b. counter c. definite d. indefinite repetition because it is known in advance how many times the loop will be executed. 3 What is the output of the following code? public class Q1 { } public static void main(String args[]) { double k = 0; for (k = 0.0; k < 3.0; k++) System.out.println("Java Loop"); } Select one: a. Java Loop is printed thrice b. Java Loop is printed twice c. Java Loop is printed infinitely d. Ru Java Loop is printed four times F What will be the output produced by the following code segment? public static void main (string args[]) { int result, x ; x = 1; result = 0; while (x What is the default constructor for the following class? public class Test {} Select one: O a. Test() b. Test(void) c. public Test(void) d. public Test() Which of the following statements about the method heading shown below is NOT true? public static char method Heading(int n, double num) 7 Select one: a. It is a value-returning method of type char b. The method has two parameters c. MethodHeading is an identifier giving a name to this specific method d. The method cannot be used outside the class You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective? Select one: O a. Private b. Public c. Protected d. Transient (8) Which of the following statements is FALSE about Objects and Classes? Select one: a. Objects are the same as Classes b. Object has its own unique identity c. Classes are created from Objects d. Classes are created for reusability The program below would not compile. The reason is: class ErrorClass { } public static void main(String[]whatever) { int class = 50; float x = 0.9f; } Select one: O O a. Whatever should be args b. There should be a public keyword in front of Error Class c. Class is reserved keyword d. There should not be a 'f' character behind 0.9 Convert 254 base of 10 to base of 2. Select one: a. 11111100 b. 11111111 c. 01111110 d. 11111110 T What is a network set up and used over regional, national or global area called? Select one: a. LAN b. WAN C. VAN d. MAN 12 Which of the following protocol establishes connection between client and server? Select one: a. POP b. HTTP c. IP d. SMTP 13 Which of the classes of IP address provides a maximum of only 254 host addresses per network ID? Select one: a. C b. B c. D d. A 14 Which of the below topology has each device on the network acting as a repeater, sending a signal to the next device? Select one: a. Mesh b. Ring c. Star d. Bus 15
Step by Step Solution
★★★★★
3.40 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Answer Solution 1 Which of the following is NOT loop structure a For is incorrect because it is a loop structure b While is incorrect because it is a loop structure c Switch is correct because it is n...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