Survey
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project
Multiple Choice Questions Sr. No . Question Opt A Opt B Opt C Opt D An s Java Archive Java Applicatio n Runner Java Archive Runner B javac -detail TestExample.j ava javac -verbose TestExample.j ava None of these javac -debug TestExample.j ava B 3 Which of the following is not a keyword in Java. boolean assert Finalize abstract C 4 Which of the following is not a keyword in Java. strictfp instanceof Emun transient C 5 We can write comment like this jn Java Programming: /* /* comment 1 */ comment 2 */ TRUE FALSE 6 What is Literal in Java Programming? Source code representation of a fixed value special type of class 7 It is possible to assign a literal to a variableof False statement True statement 1 jar stands for ________. none of these 2 Which of the following is used to see the details of the compilation B special type of data type none of these A B a primitive type. 8 boolean result = true; Which type of literal is assigned to the variable "result"? boolean char String bool A 9 Which type of literal is written in pair of single quote? float boolean Integer character D 10 An integer literal is of type long if and only if it has suffix ______ in Java programming. L D O F A 11 ____ literal is used to create values of the integral types byte, short, int and long. Double Integer Byte Long B 12 Number system whose digits consists Decimal of the numbers Number 0 through 9 is System called as ____________. Binary Number System Octal Number System Hexa Decimal Number System A 13 Hexa Decimal Numbers are having base _________. 10 8 2 16 D 14 In Java programming you can create binary literal in ____________ __. Java SE 5 and later Java SE 1 and later Java SE 7 and later Java SE 6 and later C 15 Integer literal containing value "F" comes under _______ system. Octal number Binary number None of these Hexa Decimal Number D 16 Following example of Nested Comments is allowed in Java Programming Language. // /*Nesting of Comment */ 17 Single line comments starts with _____ in Java. // /* * /* none of these C 18 Folllowing is the human readable in Java Programming Language. .class .obj .jar .java D 19 Which of the following converts human readable file into platform independent code file in Java? JRE Compiler JVM appletwatcher B FALSE TRUE B 20 Platform independent code file created from source file ins understandable by ________. JRE Applet JVM Compiler C D D 21 JVM stands for _____. Java Virtual Memory Java Virtual Mechanism Java Virtual Java Virtual Manageme Machine nt 22 JRE stands for _____. Java Reply Engine Java Runtime Engine Java Running Engine 23 Which of the following is considered as platform independent code? Source Code Compiled code A 24 Java is called as platform independent language. Do you agree with this statement? Yes No A 25 We can run same java program on different environment with same JDK version. 26 Java has ______ primtive types of data. 27 Which of the following is Java Runtime Environment TRUE 9 Bytecode A 8 int 6 Short 7 B long A smallest integer data type? 28 Which of the following is not a primitive data type? Internet Explorer enum Short byte B 29 Integer Data type does not include following primitive data type. long double Short byte B 30 Which of the following data types comes under floating data types: 1.Float 2.Int 3.Double 4.Byte 5.Long 1 and 2 1 and 3 2 and 3 4 and 5 B 31 Character data type cannot store following value. Special character string Letter digit B 32 Byte variables are declared by use of the _______ keyword (Using primitive data type) Bytes Byte byte bytes C 33 Range of Byte Data Type is ______. -127 to 128 -128 to 256 -128 to 255 -128 to 127 D 34 In order to fetch stream of data from int byte Char double B network of file, following data type is used _______. 35 What is the size of integer in Java Programming. 2 Bytes 8 Bytes 3 Bytes 4 Bytes D 36 Currently Java is owned by ______. Oracle Sun Microsoft Apple A