Question
click below
click below
Question
Normal Size Small Size show me how
CCS0070 M1-M2
Question | Answer |
---|---|
(T / F) The main method is non-static because it must be called before the class that hosts the method is instantiated | False |
Sun Microsystems is now a subsidiary of? | Oracle Corporation |
(T / F) A multi-line comment enclosed within /* */ | True |
Correct command for running a java application named "HelloWorld.java" using console java HelloWorld javac HelloWorld class HelloWorld | java HelloWorld |
What is the name of the class in this program: class HelloJava{ public static void main(String args[ ]){ System.out.println(“Hello Java”); } } | HelloJava |
(T / F) Netscape Navigator was developed in 1995 to support Java. | True |
Who developed Java? Ryan Gosling James Gosling Bjarne Stroustrup | James Gosling |
What is the width of int in Java? 2 bytes 4 bytes 8 bytes | 4 bytes |
(T / F) The JVM creates a software simulation of a CPU and memory | True |
(T / F) Correct way of displaying string output is: System.out.println(‘some text here’); | False |
(T / F) A string is enclosed with single quotation marks. | False |
(T / F) printf() provides string formatting. | True |
(T / F) nextDouble () reads a double value from the user. | True |
(T / F) The main method is static because it must be called before the class that hosts the method is instantiated | True |
(T / F) float has a width of 4 bytes. | True |
(T / F) All methods and variables in Java language are kept inside a method? | False |
File extension name of a java file. | .Java |
String args[] in main method are used for? public static void main(String args[]) { // } To pass command-line arguments to the program To store the program’s output To initialize variables within the method To specify the return type of the method | Passing arguments at run time |
It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers. | Netbeans Matisse |
What are the valid White Spaces available in Java language? | Space, Tab, Enter |
A java edition that rich user interface, performance, versatility, portability, and security that today's applications require. Standard Edition Enterprise Edition Micro Edition | Enterprise Edition |
How is a single line comment declared in java | //Some comments |
A method that provides string formatting printf prinln print | printf() |
A file that is compiled to produce bytecode file java file class file javac file | class file |
(T / F) integer data type is for whole numbers only. | True |
It reads a boolean value from the user. | nextBoolean() |
(T / F) double and float data types are used for numbers with decimal places | True |
A java edition that lets you develop and deploy Java applications on desktops and servers. | Standard Edition |
The ____ is normally compiled to produce the bytecode file (.class file) which is normally interpreted by the Java virtual machine (JVM). | Java source code |
What is the need to mention "static" before main method? Option1 : To call main method without creating an object of class Option2:To make main method as class method common to all instances | Options 1 and 2 |
(T / F) "\\\" is an escape character for printing '\'. | False |
A valid identifier in Java language may contain which characters? Letters, Digits, Underscores, Dollar signs Letters, Digits, Spaces, Dollar signs Letters, Digits, Hyphens, Dollar signs Letters, Digits, Special symbols (like @, #) | All the choices |
It reads an int value from the user. | nextInt() |
It reads a byte value from the user. | nextByte() |
What is the use of Access modifier public in Java language? To allow the main method to be called only within the same pack make the main method private making it be called within the class To call the main method outside of Class or Package by JVM | To call the main method outside of Class or Package by JVM. |
(T / F) Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. | False |
Name of a Class, Variable, Method or an Interface in Java language is called? Keyword Operator Identifier Literal | Identifier |
A Netbeans feature that is used to write, test, and debug applications for the Java Micro Edition platform (J2ME) technology-enabled mobile devices NetBeans Java Pack NetBeans Mobility Pack NetBeans Enterprise Pack NetBeans Web Pack | NetBeans Mobility Pack |
A java edition that rich user interface, performance, versatility, portability, and security that today's applications require. Standard Edition Enterprise Edition Micro Edition | Standard Edition |
A command for the documentation generator javac java javap | java |
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. | Award Winning Debugger |
(T / F) The System class is a part of the core Java language package of the Application Programming Interface (API) | True |
(T / F) A single-line comment starts with /* | False |
(T / F) String is a primitive data type | True |
Every statement in Java language should end with a? | Semicolon |
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. Award Winning Debugger GUI Builder Refactoring | GUI Builder |
(T / F) One of the tools for Object oriented design includes object inspector | True |
(T / F) Java source code is compiled to produce bytecode file | True |
(T / F) Every statement in Java language should end with ";"? | True |
(T / F) nextDbl () reads a double value from the user. | False |
(T / F) One of the tools for Object oriented design doesn't include object inspector | False |
(T / F) The main method is declared public so that it is accessible as part of the public interface of the program. | True |
float has a width of 4 bytes. | True |
In standalone Java applications, which method is mandatory? | main method |
(T / F) Identifiers are names that are given by the programmer as name of variables, methods or functions, classes etc | True |
(T / F) nextLine () reads a String value from the user. | True |
(T / F) The JVM creates a software simulation of a CPU and memory | True |
It is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. | Java |
James Gosling works for what company when they developed java? | Sun Microsystems |
(T / F) Java Wrapper Classes are used in converting one data type into another data type. | True |
(T / F) float has a width of 8 bytes | False |
(T / F) A single-line comment starts with /* | 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 |
(T / F) nextLn () reads a String value from the user. | False |
Java Bytecode File Extension name. | .class |
(T / F) Sun Microsystems is now a subsidiary of Cisco Corporation? | False |
(T / F) The main method is declared public so that it is accessible as part of the public interface of the program. | True |
(T / F) main method is void because the Java interpreter does not expect to receive or process any output from the class. | True |
(T / F) An IDE has version control system | True |
(Format Specifiers) %d | Integer |
(Format Specifiers) %f | Floating-point number |
(Format Specifiers) %s | String |
(Format Specifiers) %n | Newline (similar to \n) |
What print automatically adds a newline at the end | println() |
used for formatted printing. It allows you to specify a format string with placeholders (format specifiers). | printf() |
simply prints the provided content to the console without adding a newline character at the end. | print() |
What is the width of long in Java? | 8 bytes |
What is the width of float in Java? | 4 bytes |
What is the width of double in Java? | 8 bytes |
What is the width of boolean in Java? | 1 bit |
What is the width of charin Java? | 2 bytes |
byte, short, int, long, float, double, boolean and char are called: | primitive data types. |
What does JVM mean? | Java Virtual Machine |
creates a software simulation of a CPU and memory and handles all communication between the Java program and the underlying operating system and hardware. Java Development Kit (JDK) Java Virtual Machine (JVM) Java Compiler (javac) | Java Virtual Machine |
is normally compiled to produce the bytecode file | .java file |
[T / F] Netbeans started as a student project called Xelfi | True |
[T / F] The Goal of Netbeans was to write a Delphi- like Java IDE in Java for the first time | True |
A fast fully-featured Integrated Development Environment (IDE) with support for Java | Netbeans |
Easy to create and deploy and import java beans Standard Edition Enterprise Edition Micro Edition | Enterprise Java Beans (EJB) Development |
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 |
visual design editor with end-to-end support for enterprise applications Sublime Text NetBeans IDE Visual Studio Code TextEdit | NetBeans |
Language independent debugger core, variable modification and watches, various breakpoints and “Fix and Continue” mechanism. Award Winning Debugger, Refactoring Code Editor | Award Winning Debugger |
renaming, changing and moving of various objects, field encapsulation and usage finding. Award Winning Debugger, Refactoring, Code Editor | Refactoring |
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, Refactoring, Code Editor | Code Editor |
are used in converting one data type (such as a String) into another data type (such as int or double). It is also used in wrapping a primitive value into an object. Arrays Wrapper classes Interfaces Exceptions | Wrapper Classes |
The ____ is used to get user input, and is found in the java.util package System BufferReader InputStream Scanner class | Scanner class |
What does nextBoolean() read | Reads a boolean value from the user |
What does nextByte() read | Reads a byte value from the user |
What does nextDouble() read | Reads a double value from the user |
What does nextFloat() read | Reads a float value from the user |
What does nextInt() read | Reads an int value from the user |
What does nextLine() read | Reads a String value from the user |
What does nextLong () read | Reads a long value from the user |
What does nextShort () read | Reads a short value from the user |