Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(1) I Java is firstly invented by? A. HP B. IBM C. Microsoft D. SUN (2) ( ) Who is the inventor of Java? A.
(1) I Java is firstly invented by? A. HP B. IBM C. Microsoft D. SUN (2) ( ) Who is the inventor of Java? A. Bill Gates B. James Gosling C. Satoshi Nakamoto D. Elon Musk (3) ( ) The data types for 100,1.234, "Java" are: A. float, int, char B. float, int, String C. int, double, String D. int, double, char (4) ( ) Which of the followings is Not the primitive data type? A. String B. float C. char D. boolean (5) ( ) Which of the followings is Not the valid identifier? A. BigNumberRange B. 2nd C. test D. ab\$_1 (6) ( ) Which of the followings is Not the proper constructor definition? A. B. (7) How many bits are The width of data type "float"? A. 16 B. 32 C. 8 D. 64 (8) What Class has been used to handle input/output exceptions in Java? A. Error B. IOException C. RuntimeException D. LogicError (9) I Assume we define an array by the statement: "int [ ] array = new int[10];" which of the following statement is used to access the last element of this array? A. array [1] B. array[] C. array [10] D. array [9] 210 (10) We can use to obtain the length of the array. A. length() B. N C. length D. Length ()+1 (11) ( ) Which of the following statement is NOT TRUE for the comparison between Java and C++ ? A. the security mechanisms of Java is not better than the ones of C++. B. Memory management of Java is better than the one of C++. C. There are no global variables in Java, but C++ does. D. There are no pointers in Java, but pointers in C++ have the most flexibility. (12) ( ) Which of the following statement is WRONG for the String operation? A. String str = "more" + "Less"; B. String str = "more" \& "Less"; C. String str = "more". concat ( "Less"); D. String str = new String("moreless"); (13) ( ) Which of the following descriptions is not the feature of the Object-Oriented programming language? A. Inheritance B. Polymorphism C. Open data access D. Encapsulation (14) ( ) We define members only can be accessed by the class members inside the class scope, and cannot access by the other class's members. A. public B. private C. protected D. package access (15) ( ) Java language is and it can implement from A. single inheritance, multiple interfaces B. multiple inheritance, multiple interfaces C. multiple inheritance, single interface D. single inheritance, single interface (16) I while the following codes performed, the variable bln value is: Integer integer = new Integer (9); boolean bln = integer instanceof object; A. 9 B. false C. true D. 1 (17) ( )The program uses int grade to store the student grade, which of the following expression can check the valid grade value range [0,100] : A. grade >=0 \&\& grade =0 grade 0 \& grade
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