click below
click below
Normal Size Small Size show me how
CS0070
Object Oriented Programming [Finals]
| Question | Answer |
|---|---|
| What is the name of the class in this program: class HelloWorld{ public static void main(String args[ ]){ System.out.println(“Hello World”); } } | HelloWorld |
| It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers. | Netbeans Matisse |
| Dennis Ritchie developed Java? | False |
| What is the use of Access modifier "public" in Java language? | To call the main method outside of Class or Package by JVM |
| API stands for Application Programming Interface | 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. | GUI Builder |
| out is a public static | True |
| The JVM creates a software simulation of a CPU and memory and handles all communication between the Java program and the underlying operating system and hardware. | True |
| print() prints string inside the quotes then the cursor moves to the beginning of the next line | False |
| The main method is declared private so that it is accessible as part of the private interface of the program. | False |
| Who developed Java? | James Gosling |
| The System class is not a part of the core Java language package of the Application Programming Interface (API) | False |
| Reserved words are names that are given by the programmer as name of variables, methods or functions, classes etc | False |
| It is a class used to get user input. | Scanner |
| Oke was the original name of Java | False |
| Every statement in Java language should end with ";"? | True |
| Scanner class is found on java.util package. | True |
| String args[] in main method are used for? public static void main(String args[]) { // } | Passing arguments at run time |
| nextBool() reads a boolean value from the user. | False |
| What is the default return type of a method in Java language? | void |
| static is a not the state of a method | False |
| out keyword accepts input data | False |
| double and float data types are used for numbers with decimal places | True |
| A single-line comment starts with /* | 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 |
| The System class is a part of the core Java language package of the Application Programming Interface (API) | True |
| 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 Netbeans feature that provides XML, DTD and CSS Text Editor and XML Productivity Tools Wizards to help user generate codes. | XML |
| Correct way of displaying a string output is: System.out.println(“some text here”); | True |
| It reads a byte value from the user. | nextByte() |
| One of the tools for Object oriented design doesn't include class browser | False |
| A java edition that is It is developed using the Java Community Process | Enterprise Edition |
| byte has a minimum value of -128 | True |
| byte has a minimum value of -127 | False |
| The goal in developing netbeans was to write a Delphi- like Java IDE in Java for the first time. | True |
| A string is enclosed with double quotation marks. | True |
| println belongs to the System class. | True |
| IDE stands for? | Integrated Development Environment |
| main method is int because the Java interpreter does not expect to receive or process any output from the class. | False |
| nextB () reads a byte value from the user. | False |
| Every statement in Java language should end with ":"? | False |
| A method that provides string formatting | printf() |
| The goal in developing netbeans was to write a python- like Java IDE in Java for the first time. | False |
| An IDE doesn't have build-automation tools. | False |
| Java Wrapper Classes are used in converting one data type into another data type. | True |
| The main method is declared public so that it is accessible as part of the public interface of the program. | True |
| String is a primitive data type | True |
| println() prints string inside the quotes then the cursor moves to the beginning of the next line | True |
| Netscape Navigator was developed in 1995 to support Java. | True |
| An IDE doesn't have Compiler and/or interpreter. | False |
| Netbeans Matisse supports internationalization, and industrial look-and-feel rules, which is very important for large scale application meant to be spread world wide. | True |
| 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 main method is non-static because it must be called before the class that hosts the method is instantiated | False |
| 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 |
| An IDE consists of a debugger | True |
| In standalone Java applications, which method is mandatory? | main method |
| A function in C language is similar to what in Java language? | Method |
| An IDE doesn't have a source code editor | False |
| The very first web browser created by Java. | Webrunner |
| A single-line comment starts with // | True |
| JUM handles all communication between the Java program and the underlying operating system and hardware. | False |
| An IDE may have Various tools to simplify the construction of a GUI. | True |
| A Netbeans feature that provides information about the runtime behavior of applications | NetBeans Profiler |
| Every statement in Java language should end with ","? | False |
| int has a width of 4 bytes | True |
| nextBoolean() reads a boolean value from the user | True |
| long has a value that ranges from -32768 to 32767 | False |
| It reads a double value from the user | nextDouble() |
| int has a width of 8 bytes | False |
| A Netbeans feature that provides the services common to almost all large desktop applications such as: window, menu, settings management and storage, file access and more. | NetBeans Platform |
| A multi-line comment enclosed within /* …. **/ | False |
| String is a derived data type | True |
| An IDE doesn't have build-automation tools. | False |
| All methods and variables in Java language are kept inside a? | Class or Interface |
| static is a not the state of a method | False |
| boolean data type has only two values | True |
| An IDE doesn't have various tools to simplify the construction of a GUI. | False |
| A java edition that lets you develop and deploy Java applications on desktops and servers. | Standard Edition |
| static is a state of a method | True |
| The System keyword defines a template for an object of derived type HelloWorld | True |
| "\\\" is an escape character for printing '\'. | False |
| double and float data types are used for numbers with decimal places | 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 |
| nextInt() reads a integer value from the user. | True |
| A string is enclosed with single quotation marks. | False |
| A feature of java that means Java technology is designed to support applications that will be deployed into heterogeneous network environments | Architecture neutral and portable |
| Short has 2 width bytes | True |
| A java edition that rich user interface, performance, versatility, portability, and security that today's applications require. | Standard Edition |
| Because of the Netbeans IDE's Compile on Save feature, you have to manually compile your project in order to run it in the IDE. | False |
| Netbeans Matisse doesn't have an intelligent way to build GUI for Java (unlike eclipse), that can actually compete with the Visual Studio GUI builder. | False |
| The Java compiler generates | byte code |
| When you save a Java source file, the IDE doesn't automatically compiles it | False |
| A bytecode is interpreted by the JVM. | True |
| double data type has a width of 16 in bytes. | False |
| Scanner class is found on what java package? | java.util |
| Correct command for running a java application named "HelloWorld.java" using console | java HelloWorld |
| [True or False] System is a method | False |
| [True or False] The main method is declared private so that it is accessible as part of the private interface of the program. | False |
| [True or False] nextDbl () reads a double value from the user. | False |
| Choose a Single Line Comment in Java Language below? Group of answer choices /*Some comments*/ */Some comments/* Some comments// //Some comments | //Some comments |
| [True or False] %n is for new line | True |
| [True or False] An IDE has build-automation tools. | True |
| [True or False] short has a width of 4 bytes | False |
| Original name of Java | Oak |
| A method that prints string inside the quotes then the cursor moves to the beginning of the next line | println() |
| [True or False] short has a value that ranges from -32768 to 32767 | True |
| [True or False] A documentation or javadoc comment is enclosed /** and */ | True |
| [True or False] int has a width of 8 bytes | False |
| Java Bytecode File Extension name | .class |
| 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 |
| [True or False] short has a width of 2 bytes | True |
| What are the valid White Spaces available in Java Language? - Enter - All the above - Space - Tab | All the above |
| A command for the documentation generator | javadoc |
| [True or False] nextLn () reads a String value from the user. | False |
| [True or False] An IDE consists of Compiler and/or interpreter. | True |
| [True or False] Scanner class used to get user input | True |
| A feature of Netbeans with 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. | Code Editor |
| [True or False] All methods and variables in Java language are kept inside a method? | False |
| [True or False] IEE is a computer software to help compute programmers develop software. | False |
| [True or False] "\new" is an escape character for new line. | False |
| A valid Identifier or name in Java language can start with which character? Group of answer choices option1: a-z, A-Z both option1 and option2 0-9 option2: $, _ | both option 1 and option2 |
| Escape character for new line. | \n |
| A Netbeans feature that is used to write, test, and debug applications for the Java Micro Edition platform (J2ME) technology-enabled mobile devices | NetBeans Mobility Pack |
| A java edition that provides a robust, flexible environment for applications running on embedded and mobile devices in the Internet of Things | Micro Edition |
| [True or False] out keyword accepts output data | True |
| File extension name of a java file. | .java |