Which of the following is NOT a loop structure? Select one: a. For b. While c....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 <= 10) { if (x %2 == 0) result + = x; ++X; } System.out.println(result); } Select one: a. 55 b. 25 c. 30 d. 35 5 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 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 <= 10) { if (x %2 == 0) result + = x; ++X; } System.out.println(result); } Select one: a. 55 b. 25 c. 30 d. 35 5 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
Expert Answer:
Answer rating: 100% (QA)
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... View the full answer
Related Book For
Government and Not for Profit Accounting Concepts and Practices
ISBN: 978-1118155974
6th edition
Authors: Michael H. Granof, Saleha B. Khumawala
Posted Date:
Students also viewed these programming questions
-
Which of the following is not a control that should be established for purchases of equipment? A. Establishing a budget for capital acquisitions. B. Requiring that the department in need of the...
-
Which of the following is not a governmental structural policy that supply-side economists believe would promote long-term growth in an economy? a. A redistributive tax system. b. A promotion of...
-
Which of the following is not a method that auditors use to control their exposure to sampling risk during the examination? a. Determining an appropriate sample size. b. Performing the appropriate...
-
Your client has offered a 5-year, $1,000 par value bond with a 10 percent coupon. Interest on this bond is paid quarterly. 1) If your client is to earn a nominal rate of return of 12 percent,...
-
The following are typical questions that might appear on an internal control questionnaire relating to plant and equipment: 1. Has a dollar minimum been established for expenditures to be...
-
(a) Show that the equivalent resistance between points a and b in Figure is R. (b) What would be the effect of adding a resistance R between points c andd? 'R
-
Barbara Vigil, Chief Justice, New Mexico Supreme Court Ken Badilla bought a pair of Brahma brand work boots from Wal-Mart on October 19, 2003. The boots packaging had these express descriptions: iron...
-
Green Thumb operates a commercial plant nursery where it propagates plants for garden centers throughout the region. Green Thumb has $4,800,000 in assets. Its yearly fixed costs are $600,000, and the...
-
in the COVID pandemic of 2020, the world's largest pharmaceutical companies were quick to develop vaccines. Would a market composed of many small companies have been able to respond as fast?
-
Ken (birthdate July 1, 1987) and Amy (birthdate July 4, 1989) Booth have brought you the following information regarding their income, expenses, and withholding for the year. They are unsure which of...
-
(3) Tax Withholdings - Identify the federal and state withholding requirements for the employee. (4) Payment method - Select if using a paper check or direct deposit. (5) Pay Types (a) Select if...
-
Reply to student post supporting your comments with 2 cited references: Discussion Board I whole-heartedly agree with the statement above. The trackability that the internet provides is plentiful...
-
Company: Nordstroms (Department store chain) what are Nordstroms organization's goals, mission/vision and key stakeholders, and it will guide the rest of your problem-solving activity, include...
-
Suppose Hagadorn Venture Capital makes a $5M Series A investment in NewTech for 1M shares at $5 per share. One year later, NewTech has fallen on hard times and receives a $5M Series B financing from...
-
describing how you envision your role as a scholar, practitioner, and leader. Consider the following questions: How will you develop these roles throughout this course and the program? What are some...
-
Consumer purchases are a reflection of: you, and your tastes in the quality of consumer items. your priorities and what you feel are the most important items to you. your lifestyle choices and how...
-
The following information was taken from the records of Metlock Inc. for the year 2025: Income tax applicable to income from continuing operations $313,480; income tax applicable to loss on...
-
Q:1 Take any product or service offered in Pakistan and apply all determinents of customer Perceived value ?
-
A governments interest expenditure as reported in its debt service fund, differs signicantly from its interest expense, as reported in its government-wide statements. What is the most likely...
-
The Lewiston School District receives a $200,000 grant from the Bates Foundation to upgrade its high school computer labs. Total cost of the upgrade is estimated at $450,000. Because the grant is...
-
Examine the following ï¬nancial statements, which are condensed versions of those of a federal agency responsible for collecting taxes and duties and transferring them to the Treasury. 1....
-
What are the functions of activator proteins and repressor proteins in transcription? Explain how these proteins work at the molecular level.
-
The gene that encodes the enzyme called tyrosine hydroxylase is known to be activated by the CREB protein. Tyrosine hydroxylase is expressed in nerve cells and is involved in the synthesis of...
-
The binding of small effector molecules, protein-protein interactions, and covalent modifications are three common ways to modulate the activities of transcription factors. Which of these three...
Study smarter with the SolutionInn App