System.out.print(“BEST “);
System.out.println(“OF LUCK”);
Choose the correct option for the output of the above statements:
(i) BEST OF LUCK
(ii) BEST
OF LUCK

1 Answer

Answer :

Ans. (i) is the correct output.
System.out.print() does not add a new line at the end because of which ‘OF LUCK’ gets printed on the same line as ‘BEST’.

Related questions

Description : Write the output for the following: System.out.println(“Incredible” + “\n” + “world”);

Last Answer : Incredible world

Description : What are the types of casting shown by the following examples: (i) char c = (char)120; (ii) int x = ‘t’;

Last Answer : Ans. (i) Explicit casting (ii) Implicit casting

Description : Name the operators listed below i) < ii) ++ iii) && iv) ?:

Last Answer : Ans. i) Less than comparison operator ii) Increment operator iii) And logical operator iv) Ternary operator

Description : Classify the following as primitive or non-primitive data types: (i) char (ii) arrays (iii) int (iv) classes

Last Answer : Ans. (i) char – Primitive (ii) arrays – Non primitive (iii) int – Primitive (iv) Classes – Non primitive

Description : If int y = 10 then find int z = (++y * (y++ + 5));

Last Answer : Ans. Increment operator has the highest precedence. So, ++y and y++ will be evaluated starting from left. In ++y, the value of y will be incremented to 11 and then 11 will be used in the expression. When y++ is evaluated, the current ... int z = (++y * (y++ + 5)); = 11 * (11 + 5 ) = 11 * 16 = 176

Description : Name any two library packages.

Last Answer : Ans. java.util, java.io

Description : Write one difference between / and % operator.

Last Answer : Ans. / is division operator while % is modulus operator which gives the remainder on dividing two numbers.

Description : int res = ‘A’; What is the value of res?

Last Answer : Ans. res will hold the ASCII value of ‘A’ which is 65.

Description : What is meant by a package.Give an example

Last Answer : Ans. Package in Java is a mechanism to encapsulate a group of classes, sub packages and interfaces., examples : lang , io , util etc..

Description : If the value of basic = 1500, what will be the value of tax after the following statement is executed tax = basic > 1200 ? 200 : 100

Last Answer : Ans. 200

Description : Write a difference between Unary and Binary Operator

Last Answer : Ans. Operators that acts on one operand are referred to as Unary Operators while Binary Operators acts upon two operand Unary + or Unary – , increment/decrement are the example of Unary operator While binary operator +,-,*,/ and % are the example of binary operators , (+) adds values of its operands

Description : What is the difference between print() and println() methods?

Last Answer : A: The print() functions prints a line and the control remains on the same line, whereas, the println() function prints a line and the control moves on to the next line.

Description : Why is the ‘S’ of System.out.println() function capital?

Last Answer : A: System is the name of a class present in java,lang package and hence it begins with a capital letter as is the convention for class names.

Description : What is the use of out in System.out.println()?

Last Answer : A: ‘out’ is an object of the ‘PrintStream class and a static data member of the’System’ class which is calling the println() function.

Description : Choose the option that lists the set of statements that are NOT TRUE according to the poem. I. The tiger is in quiet rage because he has been imprisoned. II. A tiger is caged and kept in the zoo. III. He criticises the brilliant stars ... edge. (a) II & V (b) I, IV & V (c) I, II & III (d) III & V

Last Answer : (d) III & V

Description : Select the most appropriate option for the below two statements. I. A Dos attack can take down your internet connection II. A Dos attack can take down your entire system a. Both I and II are true b. I is true II is false c. I is false II is True d. Both I and II are false

Last Answer : a. Both I and II are true

Description : Read the following statements and choose the correct rect option. (A) Only a point source forms a complete umbra. (B) An extended source of light form

Last Answer : Read the following statements and choose the correct rect option. (A) Only a point source forms a complete ... B are true D. Both A and B are false

Description : Read the following statements and choose the correct option. (A) Planets are not luminous bodies. (B) The sun is the nearest star to us from which the

Last Answer : Read the following statements and choose the correct option. (A) Planets are not luminous bodies. (B) The sun ... B are true D. Both A and B are false

Description : A) Knowledge base (KB) is consists of set of statements. B) Inference is deriving a new sentence from the KB. Choose the correct option. a) A is true, B is true b) A is false, B is false c) A is true, B is false d) A is false, B is true

Last Answer : a) A is true, B is true

Description : How do you print your slides in a handout that includes lines for notes? 1) In the Print dialog box, select Handouts and set the number of slides per page to 3 2) In the Print dialog box, select ... pages option 3) In the Print dialog box, select Notes Pages instead of Handouts 4) It cannot be done

Last Answer : 2) In the Print dialog box, select Handouts and a number of slices per page, then select the Include

Description : Match the column -I with column -II and choose the correct option :

Last Answer : Match the column -I with column -II and choose the correct option : A. A-i,B-ii,C-iii,D-iv,E-v,F-vi B. A-v, ... ,F-vi D. A-ii,B-i,C-iii,D-iv,E-v,F-vi

Description : Match the column-I with Column-II Choose the correct option :

Last Answer : Match the column-I with Column-II Choose the correct option : A. A-ii,B-iii,C-v,D-iv,E-i B. A-ii,B-v,C-iii, ... ,D-iv,E-ii D. A-i,B-v,C-iii,D-iv,E-ii

Description : Choose the correct option regarding energy of empty orbitals. `{:(,n,l,m,s),((I),4,0,0,+(1)/(2)),((III),3,1,1,+(1)/(2)):}` ` {:(,n,l,m,s),((II),3,2,0,

Last Answer : Choose the correct option regarding energy of empty orbitals. `{:(,n,l,m,s),((I),4,0,0,+(1)/(2)),((III),3, ... . `II lt I` C. `II lt III` D. `I = III`

Description : .Match the terms in column I with their description in column II and choose the correct option. Column I Column II A. Dominance (i) Many genes govern a single character B. Co-dominance (ii) In a heterozygous organism only one allele ... (i) (ii) (c) (ii) (i) (iv) (iii) (d) (ii) (iii) (iv) (i)

Last Answer : (d) (ii) (iii) (iv) (i)

Description : Match the items given in column I with those in column II and choose the correct option. Column I Column II A. Rennin (i) Vitamin B12 B. Enterokinase (ii) Facilitated transport C. Oxyntic cells (iii)Milk proteins D. Fructose (iv) ... ii (c) A-iv, B-iii, C-ii, D-i (d) A-iii, B-iv, C-i, D-ii

Last Answer : (d) A-iii, B-iv, C-i, D-ii

Description : Match the following. (A) Inhibitor of (i) Ricin catalytic activity (B) Possess peptide (ii) Malonate bonds (C) Cell wall material (iii)Chitin in fungi (D) Secondary (iv) Collagen metabolite Choose the correct option from the following: (A) ... iv) (ii) (c) (iii) (iv) (i) (ii) (d) (ii) (iii) (i) (iv)

Last Answer : (A) Inhibitor of (i) Ricin catalytic activity

Description : Read the following four statements, (i), (ii), (iii) and (iv) and select the right option having both correct statements. Statements : (i) Z scheme of light reaction takes place in presence of PSI only. (ii) Only PSI is ... and (iv) (b) (i) and (ii) (c) (ii) and (iii) (d) (iii) and (iv)

Last Answer : (a) (ii) and (iv)

Description : Consider the following statements. I. TCP connections are full duplex. II. TCP has no option for selective acknowledgment III. TCP connections are message streams. a. Only I is correct b. Only I and II are correct c. Only II and III are correct d. All of I, II and III are correct

Last Answer : a. Only I is correct

Description : Read the following statements and select the correct option. Statement-I : Nostoc and Bacteria are prokaryotes. Statement-II: Penicillium and Spirogyra are fungi. (1) Only statement I is true (2) Only statement II is true (3) Both statements I and II are true (4) Both statements I and II are false

Last Answer : (1) Only statement I is true

Description : Which printers produce output by mechanical contact between the print head and paper? A. Impact B. Non-impact C. Both (A) and (B) D. None of the Above

Last Answer : A. Impact

Description : Match the entities of column I with column II and choose the right option from the codes given below

Last Answer : Match the entities of column I with column II and choose the right option from the codes given below A. `{:("A"" B ... D"),("ii"" i"" iii" " iv"):}`

Description : Wetlands International is a conservation organization. Go through the following statements in the same context and choose the correct statement i) Only the countries which are signatories to the ... working at ground level to use practical knowledge for framing better policies -General Knowledge

Last Answer : Only iii Explanation: Wetland International is a global, independent, not for profit organization that is supported by Governments across the world and various NGOs. It is situated in the ... It also advocates on various corporate and international policies forum and conventions across the globe.

Description : Regarding the National Flag choose the correct options from the following statements i) It has a horizontal strip of three colours including deep saffron at the top, white in the middle, and dark green at the bottom. ii) The ratio of the flag width to its length is 2:3 -Science

Last Answer : Both i and ii The National Flag of India has a horizontal strip of three colours including deep saffron (Kesaria) at the top, white in the middle, and dark green at the bottom. The ratio of the flag width to its length is 2:3.

Description : 134 Given below are the statements about the harmful effects of weeds on crop plants. i. They interfere in harvesting ii. They help crops to grow healthy. iii. They compete with crop plants for water, nutrients , space and light ... statements a) i, iii, iv b)iii only c) iii , iv d) i, ii , iii, iv

Last Answer : a) i, iii, iv

Description : If the statement 'some men are honest' is false, which among the following statements will be true Choose the correct code given below: (i) All men are honest (ii) No men are honest (iii) Some men are not honest (iv) All men ... ), (iii) and (iv) (C) (i), (iii) and (iv) (D) (ii), (i) and (iv)

Last Answer : Answer: B

Description : Which of the following statements are mutually contradictory ? (i) All flowers are not fragrant. (ii) Most flowers are not fragrant. (iii) None of the flowers is fragrant. (iv) Most flowers are fragrant. Choose the correct answer ... ii) (B) (i) and (iii) (C) (ii) and (iii) (D) (iii) and (iv)

Last Answer : (D) (iii) and (iv) 

Description : What print option indicates how errors in cells should be displayed on a printout?

Last Answer : The "Cell errors as" option.

Description : If I want to print business cards, letterhead, or envelopes, then which one is a better option, offset printing or digital printing?

Last Answer : Letterhead is an integral part of every business company. It displays the company logo, address, corporate design, and other important information. These are available in multiple designs and ... mind while printing the letterheads for your company if you want to make them presentable.

Description : In the given diagram identify A , B , C and D . Respectively and choose the correct option out of 1,2,3, and 4 .

Last Answer : In the given diagram identify A , B , C and D . Respectively and choose the correct option out of ... "Fertilization" , "Implantation" , "Uterus"):}`

Description : Choose the correct option. Globalization, by connecting countries, shall result in -SST 10th

Last Answer : B - Greater competition among producers. As the producers, from all over the world are competing in similar market arena, this has induced greater competition among them.

Description : Choose the correct option. The relation R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3), (1, 3)} on a set A = {1, 2, 3} is -Maths 9th

Last Answer : R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3), (1, 3)} on set A = {1, 2, 3}. (i) Since (1, 1), (2, 2), (3, 3) ∈ R ⇒ R is reflexive. (ii) (1, 2) ∈ R but (2, 1) ∉ R ⇒ R is not symmetric. (iii) (1, 2) ∈ R, (2, 3) ∈ R and (1, 3) ∈R ⇒ R is transitive. ∴ Option (a) is the right answer.

Description : Identify A,B,C and D and choose correct option regardin their nmber in complete jaw `:-`

Last Answer : Identify A,B,C and D and choose correct option regardin their nmber in complete jaw `:-`

Description : Choose the correct option from parts labelled a-f

Last Answer : Choose the correct option from parts labelled a-f A. b-Graafian follicle, f-corpus luteum B. c ... antrum D. e-corpus callosum, d-antrum cavity.

Description : Choose the correct option

Last Answer : Choose the correct option A. B. C. D.