click below
click below
Normal Size Small Size show me how
OOP
| Question | Answer |
|---|---|
| File extension name of a java file. (.java | .javac | .javax | .class) | .java |
| Netscape Navigator was developed in 1995 to support Java. | True |
| Every statement in Java language should end with "<>"? | false |
| `boolean` data type has only two values | true |
| Correct command for running a java application named `Hello.java` using console (`javac Hello.java` | `javac Hello.txt` | `java Hello` | `java Hello.txt`) | java Hello |
| The goal in developing netbeans was to write a Delphi- like Java IDE in Java for the first time. | true |
| What is the name of the class in this program: `class HelloJava{ public static void main(String args[ ]){ System.out.println(“Hello Java”); } }` (`String args` | `HelloJava` | `System` | `main`) | HelloJava |
| A file that is compiled to produce bytecode file (word file | class file | procedures | java source code) | java source code |
| A valid Identifier or name in Java language can start with which character? (option2: $, _ | both option1 and option2 | option1: a-z, A-Z | 0-9) | both option1 and option2 |
| 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 |
| A java edition that is It is developed using the Java Community Process (Micro Edition | Standard Edition | Enterprise Edition) | Enterprise Edition |
| Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. | false |
| `long` has a value that ranges from -32768 to 32767 | false |
| Java Wrapper Classes are used in converting one data type into another data type. | true |
| A feature of Netbeans that makes it easy to create, deploy and import java beans. (Java 2 Platform, Micro Edition (J2ME) MIDP development | Web Services Development | Enterprise Java Beans (EJB) Development) | Enterprise Java Beans (EJB) Development |
| 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. (JMV | MJV | JVM | JJM) | JVM |
| A function in C language is similar to what in Java language? (Member | None of the above | Variable | Method) | Method |
| `static` is a not the state of a method | false |
| What are the valid White Spaces available in Java language? (Enter | All the above | Tab | Space) | All the above |
| `println()`provides string formatting. | false |
| `static` is a state of a method | true |
| `byte` has a maximum value of 128 | false |
| All methods and variables in Java language are kept inside a Class? | true |
| The `main` method is declared `public` so that it is accessible as part of the public interface of the program. | true |
| The class file is normally compiled to produce the bytecode file (.class file) which is normally interpreted by the Java virtual machine (JVM). | False |
| `short` has a width of 2 bytes | true |
| A documentation or javadoc comment is enclosed between `/**` and `*/` | true |
| 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. (Version control Support | XML | GUI Builder) | GUI Builder |
| `nextLine()` reads a String value from the user. | true |
| Netbeans feature w/ wizards for creating web services and web services clients, providing the basic code needed. (Java 2 Platform, Micro Edition (J2ME) MIDP development | Enterprise Java Beans (EJB) Development | Web Services Development) | Web Services Development |
| C++ is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. | False |
| The identifier name may be a reserved word. | false |
| In standalone Java applications, which method is mandatory? (display method | show method | print method | main method) | main method |
| The `System` keyword defines a template for an object of derived type HelloWorld | false |
| A java edition that provides a robust, flexible environment for applications running on embedded and mobile devices in the Internet of Things (Enterprise Edition | Micro Edition | Standard Edition) | Micro Edition |
| Netbeans feature w/ Syntax highlighting for Java, XML, HTML, CSS, JSP and IDL, full support of new JDK 1.5 features, live parsing/error marking, popup javadoc, code completion, and fast class importing. (Award Winning Debugger | Code Editor | Refactoring) | Code Editor |
| An IDE doesn't have Compiler and/or interpreter. | false |
| `nextB()` reads a byte value from the user. | false |
| A string is enclosed with double quotation marks. | true |
| Netbeans started as a student project called Selfie | false |
| `\n` is an escape character for new line. | true |
| It reads a `boolean` value from the user. (`nextBoolean` | `nextBool` | `nextBoolean()` | `nextBool()`) | nextBoolean() |
| One of the tools for Object oriented design doesn't include class browser | false |
| An IDE may have Various tools to simplify the construction of a GUI. | true |
| `float` has a width of 8 bytes | false |
| A single-line comment starts with `//` | true |
| One of the tools for Object oriented design includes object inspector | true |
| `printf()`provides string formatting. | true |
| What is the need to mention `static` before `main` method? (Option2:To make main method as class method common to all instances | Option1 : To call main method without creating an object of class | None of the above | Both Options 1 and 2) | Both Options 1 and 2 |
| `nextInteger()` reads a integer value from the user. | false |
| `out` is a `private static` field | false |
| `nextLong()` reads a long value from the user. | 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 Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding. (Award Winning Debugger | Refactoring | Code Editor) | Refactoring |
| `API` stands for Application Programmable Interface | false |
| The `main` method is declared `private` so that it is accessible as part of the private interface of the program. | false |
| The command to compile a java source code. (`javadoc` | `java` | `javac`) | javac |
| `nextFloat()` reads a float value from the user. | true |
| `double` data type has a width of 16 in bytes. | false |
| Feature that means that Java can be programmed without extensive training while being attuned to current software practices (Simple, object-oriented, and familiar | High performance | Architecture neutral and portable | Interpreted, threaded, and dynamic) | Simple, object-oriented, and familiar |
| Feature that means that the Java interpreter can execute the bytecodes directly on any machine to which the interpreter (Simple, object-oriented, and familiar | Architecture neutral and portable | Interpreted, threaded, and dynamic | High performance) | Interpreted, threaded, and dynamic |
| Identifiers are names that are given by the programmer as name of variables, methods or functions, classes etc | true |
| `print()` prints string inside the quotes then the cursor moves to the beginning of the next line | false |
| `main` method is `void` because the Java interpreter does not expect to receive or process any output from the class. | true |
| What is the default return type of a method in Java language? (`int` | `void` | `short` | None of the above) | void |
| What is the use of Access modifier `public` in Java language? (To hide the main method from misuse | To call the main method outside of Class or Package by JVM | To protect main method | None of the above) | To call the main method outside of Class or Package by JVM |
| `String` is a derived data type | true |
| Who developed Java? (James Gosling | None of the options | Dennis Ritchie | Bjarne Stroustrup) | James Gosling |
| The `class` keyword defines a template for an object of derived type HelloWorld | true |
| A multi-line comment enclosed within `/* …. **/` | false |