click below
click below
Normal Size Small Size show me how
OOP F1 (M1 M2)
| Question | Answer |
|---|---|
| byte has a minimum value of -127 | False |
| API stands for Application Programming Interface | True |
| An IDE may have Various tools to simplify the construction of a GUI. | True |
| A multi-line comment enclosed within /* …. **/ | False |
| What is the default return type of a method in Java language? | void |
| Java Wrapper Classes are used in converting one data type into another data type. | True |
| A method that prints string inside the quotes and leaves the prompt the same line. | print() |
| Every statement in Java language should end with a? | Semicolon |
| The goal in developing netbeans was to write a python- like Java IDE in Java for the first time. | false |
| A java edition that is the standard in community-driven enterprise software | Enterprise Edition |
| A function in C language is similar to what in Java language? | Method |
| The class keyword defines a template for an object of derived type HelloWorld | true |
| A feature of Netbeans that makes it easy to create, deploy and import java beans. | Enterprise Java Beans (EJB) Development |
| nextLng () reads a long from the user. | false |
| The main method is declared public so that it is accessible as part of the public interface of the program. | true |
| nextLine () reads a String value from the user. | true |
| double and float data types are used for numbers with decimal places | true |
| short has a width of 4 bytes | false |
| What is the default return type of a method in Java language? | void |
| A multi-line comment enclosed within /* */ | true |
| Java is a portable language that could run on any platform. The language was able to do this by generating intermediate code for a hypothetical computer called a virtual machine. | True |
| An IDE doesn't have Compiler and/or interpreter. | false |
| File extension name of a java file. | .java |
| IDE is a computer software to help computer programmers develop software. | true |
| nextDbl () reads a double value from the user. | false |
| A feature of Netbeans that enables support for multiple source roots, easy management of libraries, easily ported to other environments, all based on Apache Ant. | project system |
| A file that is compiled to produce bytecode file | java source code |
| Java Bytecode File Extension name is .java. | False |
| main method is int because the Java interpreter does not expect to receive or process any output from the class. | false |
| What is the name of the class in this program: class HelloJava{ public static void main(String args[ ]){ System.out.println(“Hello Java”); } } | HelloJava |
| Reserved words are names that are given by the programmer as name of variables, methods or functions, classes etc | False |
| "\new" is an escape character for new line. | False |
| Sun Microsystems is now a subsidiary of Cisco Corporation? | False |
| main method is void because the Java interpreter does not expect to receive or process any output from the class. | True |
| The __________ creates a software simulation of a CPU and memory and handles all communication between the Java program and the underlying operating system and hardware. | JVM |
| An IDE doesn't have various tools to simplify the construction of a GUI. | False |
| A string is enclosed with single quotation marks. | False |
| IEE is a computer software to help computer programmers develop software. | False |
| Correct way of displaying a string output is: System.out.println(“some text here”); | True |
| short has a width of 4 bytes | False |
| It reads a long value from the user. | nextLong() |
| int has a width of 4 bytes | True |
| static is a state of a method | True |
| A Netbeans feature that supports command lined vcs, supplying merging and diff tools and containing a built- in CVS client. | Version control Support |
| Sun Microsystems is now a subsidiary of ? | Oracle Corporation |
| nextInteger () reads a integer value from the user. | False |
| What is the name of the class in this program: class Rectangle{ public static void main(String args[ ]){ System.out.println(“This is a Rectangle”); } } | Rectangle |
| The loader for java applications. | java |
| The System class is a part of the core Java language package of the Application Programming Interface (API) | true |
| The very first web browser created by Java. | WebRunner |
| %d is for used for decimal | true |
| Identifiers are names that are given by the programmer as name of variables, methods or functions, classes etc | true |
| IDE stands for? | Integrated Development Environment |
| Choose a multiline comment in Java language below? | /*comments are going cars are moving*/ |
| A feature of java that means that the Java interpreter can execute the bytecodes directly on any machine to which the interpreter | Interpreted, threaded, and dynamic |
| The System keyword defines a template for an object of derived type HelloWorld | false |
| It reads a byte value from the user. | nextByte() |
| James Gosling works for Microsoft when he developed java? | False |
| A feature of Netbeans for visual design editor with end-to-end support for enterprise applications. | Java 2 Platform, Micro Edition (J2ME) MIDP development |
| double data type has a width of 8 in bytes. | true |
| Every statement in Java language should end with ","? | false |
| All methods and variables in Java language are kept inside a? | Class or Interface |
| long has a value that ranges from -32768 to 32767 | false |
| A Netbeans feature that provides information about the runtime behavior of applications | NetBeans Profiler |
| Correct way of displaying string output is: System.out.println(‘some text here’); | false |
| %d is for used for date | false |
| Scanner class used to get user input. | true |
| One of the tools for Object oriented design includes class hierarchy diagram | true |
| A single-line comment starts with // | true |
| The command to compile a java source code. | javac |
| Java is a portable language that could run on any platform. The language was able to do this by generating intermediate code for a hypothetical computer called a ________. | virtual machine |
| print() prints string inside the quotes and leaves the prompt the same line. | true |
| The main method is declared private so that it is accessible as part of the private interface of the program. | false |
| "\n" is an escape character for new line. | true |
| Correct command for compiling a file named "Hello.java" using console. | javac Hello.java |
| nextDouble () reads a double value from the user. | true |
| short has a width of 2 bytes | true |
| Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. | false |
| C++ is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. | False |
| A single-line comment starts with /* | false |
| JUM handles all communication between the Java program and the underlying operating system and hardware. | False |
| nextLong () reads a long value from the user. | true |
| An IDE doesn't have build-automation tools. | false |
| A valid Identifier or name in Java language can start with which character? | both option1 and option2 |
| What is the feature of Netbeans for Language independent debugger core, variable modification and watches, various breakpoints and "Fix and Continue" mechanism. | Award Winning Debugger |
| out is a public static field | true |
| nextB () reads a byte value from the user. | false |
| A valid identifier in Java language may contain which characters? | All the choices |
| A feature of java that means that Java can be programmed without extensive programmer training while being attuned to current software practices | Simple, object-oriented, and familiar |
| A Netbeans feature that gives it an extensible Component Palette pre-installed Swing and AWT components, showing a components tree and properties, automatic code generation and full JavaBeans support. | GUI Builder |
| A Netbeans feature that provides XML, DTD and CSS Text Editor and XML Productivity Tools Wizards to help user generate codes. | XML |
| An IDE has version control system | true |
| Scanner class is found on what java package? | java.util |
| String args[] in main method are used for? public static void main(String args[]) { // } | Passing arguments at run time |
| One of the tools for Object oriented design doesn't include class browser | false |
| An IDE has build-automation tools. | true |
| A browser that was developed in 1995 to support Java. | Netscape Navigator |
| boolean data type has two or more values | false |
| Escape character for new line. | \n |
| nextBool() reads a boolean value from the user. | false |
| IEE is a computer software to help computer programmers develop software. | false |
| An IDE doesn't have a source code editor | false |
| What are the valid White Spaces available in Java language? | All the above |
| float has a width of 8 bytes | false |
| byte has a minimum value of -128 | true |
| nextLn () reads a String value from the user. | false |
| It is a class used to get user input. | Scanner |
| It reads a int value from the user. | nextInt() |
| boolean data type has only two values | true |
| integer data type is for whole numbers only. | true |
| double data type has a width of 16 in bytes. | false |
| Correct command for running a java application named "Hello.java" using console | java Hello |
| In standalone Java applications, which method is mandatory? | main method |
| A feature of of Netbeans for supporting the J2EE 1.3 and 1.4 standards with web application build support based on Apache Ant. | web development |
| "\tab" is an escape character for tab. | false |
| println does not belong to the System class. | false |
| integer data type is for whole numbers only. | true |
| The JVM creates a software simulation of a CPU and memory | True |
| In 1996, the java release as a core component of Sun Microsystems' Java platform? | False |
| float has a width of 4 bytes. | true |
| IDE stands for Integrated Design Environment | false |
| printf()provides string formatting. | true |
| It reads a float value from the user. | nextFloat() |
| Choose a correct version of Java Documentation Comment? | /**comments**/ |
| The main method is static because it must be called before the class that hosts the method is instantiated | true |
| String is a primitive data type | true |
| Netbeans Matisse doesn't support internationalization, and industrial look-and-feel rules, which is very important for large scale application meant to be spread world wide. | false |
| A feature of java that means the automatic garbage collector runs as a low priority background thread, ensuring a high probability that memory is available when required, leading to better performance. | High performance |
| short has a value that ranges from -32768 to 32767 | true |
| A feature of netbeans with wizards for creating web services and web services clients, providing the basic (java/wsdl) code needed, and easy to use testing tools of existing web services. | Web Services Development |
| A feature of Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding. | Refactoring |
| The System class is not a part of the core Java language package of the Application Programming Interface (API) | false |
| What is the use of Access modifier "public" in Java language? | To call the main method outside of Class or Package by JVM |
| It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers. | Netbeans Matisse |
| A string is enclosed with double quotation marks. | true |