Knowee
Questions
Features
Study Tools

Choose the correct answers to the questions from the given options.(Do not copy the question, write the correct answers only.)[20](i)Name the feature of java depicted in the above picture.(a) Encapsulation(b) Inheritance(c) Abstraction(d) PolymorphismT24 861 – SPECIMEN 2 of 10(ii) The expression which uses > = operator is known as:(a) relational(b) logical(c) arithmetic(d) assignment(iii) Ternary operator is a:(a) logical operator(b) arithmetic operator(c) relational operator(d) conditional operator(iv) When primitive data type is converted to a corresponding object of its class, itis called:(a) Boxing(b) Unboxing(c) explicit type conversion(d) implicit type conversion(v) The number of bytes occupied by a character array of 10 elements.(a) 20 bytes(b) 60 bytes(c) 40 bytes(d) 120 bytes(vi) The method of Scanner class used to accept a double value is:(a) nextInt()(b) nextDouble()(c) next()(d) nextInteger()T24 861 – SPECIMEN 3 of 10(vii) Among the following which is a keyword:(a) every(b) all(c) case(d) each(viii) The output of Math.round(6.6) + Math.ceil(3.4) is:(a) 9.0(b) 11.0(c) 10.0(d) 11(ix) Name the type of error, if any in the following statement:System.out.print("HELLO")(a) logical(b) no error(c) runtime(d) syntax(x) Java statement to access the 5th element of an array is:(a) X[4](b) X[5](c) X[3](d) X[0](xi) The output of “Remarkable”.substring(6) is:(a) mark(b) emark(c) marka(d) ableT24 861 – SPECIMEN 4 of 10(xii) Which of the following is the wrapper class for the data type char?(a) String(b) Char(c) Character(d) Float(xiii) Name the package that contains wrapper classes:(a) java.lang(b) java.util(c) java .io(d) java.awt(xiv) Constructor overloading follows which principle of Object Orientedprogramming?(a) Inheritance(b) Polymorphism(c) Abstraction(d) Encapsulation(xv) Which of the following is a valid Integer constant:1. 42. 4.03. 4.3f4. “four”(a) Only 1.(b) 1. and 3.(c) 2. and 4.(d) 1. and 2.T24 861 – SPECIMEN 5 of 10(xvi) The method compareTo() returns __________ when two strings are equal andin lowercase :(a) true(b) 0(c) 1(d) false(vii) Assertion(A): In java statements written in lower case letter or upper case letterare treated as the same.Reason(R): Java is a case sensitive language.(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correctexplanation of Assertion (A)(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not acorrect explanation of Assertion(A)(c) Assertion (A) is true and Reason (R) is false(d) Assertion (A) is false and Reason (R) is true(xviii) Read the following text, and choose the correct answer:A class encapsulate Data Members that contains the information necessary torepresent the class and Member methods that perform operations on the datamember.What does a class encapsulate?(a) Information and operation(b) Data members and Member methods(c) Data members and information(d) Member methods and operationT24 861 – SPECIMEN 6 of 10(xix) Assertion(A): call by value is known as pure methodReason(R): The original value of variable does not change as operation isperformed on copied values.(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correctexplanation of Assertion (A)(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not acorrect explanation of Assertion (A)(c) Assertion (A) is false and Reason (R) is true(d) Assertion (A) is false and Reason (R) is true(xx) What Will be the output for:System.out.print(Character.toLowerCase('1'));(a) 0(b) 1(c) A(d) tru

Question

Choose the correct answers to the questions from the given options.(Do not copy the question, write the correct answers only.)20Name the feature of java depicted in the above picture.(a) Encapsulation(b) Inheritance(c) Abstraction(d) PolymorphismT24 861 – SPECIMEN 2 of 10(ii) The expression which uses > = operator is known as:(a) relational(b) logical(c) arithmetic(d) assignment(iii) Ternary operator is a:(a) logical operator(b) arithmetic operator(c) relational operator(d) conditional operator(iv) When primitive data type is converted to a corresponding object of its class, itis called:(a) Boxing(b) Unboxing(c) explicit type conversion(d) implicit type conversion(v) The number of bytes occupied by a character array of 10 elements.(a) 20 bytes(b) 60 bytes(c) 40 bytes(d) 120 bytes(vi) The method of Scanner class used to accept a double value is:(a) nextInt()(b) nextDouble()(c) next()(d) nextInteger()T24 861 – SPECIMEN 3 of 10(vii) Among the following which is a keyword:(a) every(b) all(c) case(d) each(viii) The output of Math.round(6.6) + Math.ceil(3.4) is:(a) 9.0(b) 11.0(c) 10.0(d) 11(ix) Name the type of error, if any in the following statement:System.out.print("HELLO")(a) logical(b) no error(c) runtime(d) syntax(x) Java statement to access the 5th element of an array is:(a) X4 X5 X3 X0 The output of “Remarkable”.substring(6) is:(a) mark(b) emark(c) marka(d) ableT24 861 – SPECIMEN 4 of 10(xii) Which of the following is the wrapper class for the data type char?(a) String(b) Char(c) Character(d) Float(xiii) Name the package that contains wrapper classes:(a) java.lang(b) java.util(c) java .io(d) java.awt(xiv) Constructor overloading follows which principle of Object Orientedprogramming?(a) Inheritance(b) Polymorphism(c) Abstraction(d) Encapsulation(xv) Which of the following is a valid Integer constant:1. 42. 4.03. 4.3f4. “four”(a) Only 1.(b) 1. and 3.(c) 2. and 4.(d) 1. and 2.T24 861 – SPECIMEN 5 of 10(xvi) The method compareTo() returns __________ when two strings are equal andin lowercase :(a) true(b) 0(c) 1(d) false(vii) Assertion(A): In java statements written in lower case letter or upper case letterare treated as the same.Reason(R): Java is a case sensitive language.(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correctexplanation of Assertion (A)(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not acorrect explanation of Assertion(A)(c) Assertion (A) is true and Reason (R) is false(d) Assertion (A) is false and Reason (R) is true(xviii) Read the following text, and choose the correct answer:A class encapsulate Data Members that contains the information necessary torepresent the class and Member methods that perform operations on the datamember.What does a class encapsulate?(a) Information and operation(b) Data members and Member methods(c) Data members and information(d) Member methods and operationT24 861 – SPECIMEN 6 of 10(xix) Assertion(A): call by value is known as pure methodReason(R): The original value of variable does not change as operation isperformed on copied values.(a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correctexplanation of Assertion (A)(b) Both Assertion (A) and Reason (R) are true and Reason (R) is not acorrect explanation of Assertion (A)(c) Assertion (A) is false and Reason (R) is true(d) Assertion (A) is false and Reason (R) is true(xx) What Will be the output for:System.out.print(Character.toLowerCase('1'));(a) 0(b) 1(c) A(d) tru

...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

(a) Polymorphism (a) relational (d) conditional operator (a) Boxing (a) 20 bytes (b) nextDouble() (c) case (b) 11.0 (b) no error (a) X[4] (d) able (c) Character (a) java.lang (b) Polymorphism (a) Only 1. (b) 0 (d) Assertion (A) is false and Reason (R) is true (b) Data members and Member methods (b) Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A) (b) 1

This problem has been solved

Similar Questions

Which of the following is NOT a Java operator?Note: When in doubt, try it out in IntelliJ.Question 5Answera.!=b.!c.<=d.-<e.-=

For this discussion assignment, please provide your response to each of the below questions in a minimum of 200 words and a maximum of 250 words. In the context of Java programming, discuss the significance of having a thorough understanding of variables and data types. Compare and contrast the various data types offered in Java, including both primitive data types and reference data types. Additionally, explain the distinct roles played by variables and data types in the storage and manipulation of data. Illustrate your points with relevant examples to reinforce your explanations. Elaborate on the concept of operator precedence in Java and how it affects the evaluation of expressions. Discuss how understanding operator precedence can help in avoiding potential errors while writing code and improving program efficiency. Demonstrate your understanding by providing examples that highlight the importance of considering operator precedence in Java programming.  In the context of Java programming, engage in a comprehensive discussion regarding the significance and diverse applications of conditionals. Analyze and compare the distinct types of conditional statements available, including if-else, switch-case, and ternary operators, focusing on their syntax, functionality, and use cases. Examine the advantages and limitations of each conditional statement type, while differentiating the scenarios in which they are most effective. Elaborate on the factors that influence the selection of one conditional statement over another. Please include a word count. Following the APA standard, use references and in-text citations for the textbook and any other sources.

Which of the following operators has least precedence in Java?

Java ternary operator sometimes called?Options: Pick one correct answer from belowRelational operatorLogical operatorConditional operatorNone of the above

Which symbol is used to denote a generic type in Java? Which of the following statements is true about this method? a. * b. & c. # d. <>

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.