click below
click below
Normal Size Small Size show me how
OOP [F1]
Object Oriented Programming Formative 1
| Question | Answer |
|---|---|
| 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. True False | True |
| 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 None of the above To protect main method | To call the main method outside of Class or Package by JVM |
| The very first web browser created by Java. HotCoffee JavaCoffee WebCoffee WebRunner | WebRunner |
| An IDE may have Various tools to simplify the construction of a GUI. true false | True |
| Scanner class is found on what java package? javax.swing java.Scanner java.io java.util | java.util |
| Choose a multiline comment in Java language below? //comments are going cars are moving// None of the above /*comments are going cars are moving*/ */comments are going cars are moving/* | /*comments are going cars are moving*/ |
| double and float data types are used for numbers with decimal places false true | true |
| The ____ is normally compiled to produce the bytecode file (.class file) which is normally interpreted by the Java virtual machine (JVM). Java Netbeans Java source code Java program Java class file | Java source code |
| println belongs to the System class. false true | true |
| short has a value that ranges from -32768 to 32767 true false | true |
| main method is void because the Java interpreter does not expect to receive or process any output from the class. false true | true |
| One of the tools for Object oriented design includes class browser false true | true |
| "\t" is an escape character for tab. false true | true |
| Correct command for compiling a text file named "HelloWorld.java" using console java HelloWorld.txt javac HelloWorld.java javac HelloWorld.txt java HelloWorld.java | javac HelloWorld.java |
| Java Bytecode File Extension name is .java. True False | False |
| A Netbeans feature that provides information about the runtime behavior of applications NetBeans Platform NetBeans Profiler NetBeans Mobility Pack | NetBeans Profiler |
| One of the tools for Object oriented design includes class hierarchy diagram false true | true |
| A documentation or javadoc comment is enclosed between /** and */ false true | true |
| Sun Microsystems is now a subsidiary of Microsoft Corporation? True False | False |
| One of the tools for Object oriented design includes object inspector false true | true |
| System is a method true false | false |
| API stands for Application Programmable Interface false true | false |
| An IDE consists of a source code editor false true | true |
| File extension name of a java file is .javac. False True | 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”); } } String args Rectangle System main | Rectangle |
| Escape character for printing '\'. \t \n \\ | \\ |
| The System class is not a part of the core Java language package of the Application Programming Interface (API) false true | false |
| A feature of Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding. Award Winning Debugger Code Editor Refactoring | Refactoring |
| out keyword accepts output data true false | true |
| double data type has a width of 8 in bytes. true false | true |
| Correct command for running a java application named "Hello.java" using console java Hello.txt java Hello javac Hello.java javac Hello.txt | java Hello |
| A string is enclosed with single quotation marks. false true | false |
| A browser that was developed in 1995 to support Java. Mosaic Mozilla Firefox Chrome Netscape Navigator | Netscape Navigator |
| What is the feature of Netbeans for Language independent debugger core, variable modification and watches, various breakpoints and "Fix and Continue" mechanism. Refactoring Code Editor Award Winning Debugger | Award Winning Debugger |
| A method that provides string formatting print() println() printf() | printf() |
| What is the name of the class in this program: class HelloWorld{ public static void main(String args[ ]){ System.out.println(“Hello World”); } } String args main System HelloWorld | HelloWorld |
| What are the valid White Spaces available in Java language? Space Enter Tab All the above | All the above |
| A single-line comment starts with // false true | true |
| int has a width of 4 bytes true false | true |
| Every statement in Java language should end with a? Comma Colon Semicolon Dot or Period | Semicolon |
| C++ is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. True False | False |
| println()provides string formatting. false true | false |
| A valid identifier in Java language may contain which characters? 0-9 $, _ (Underscore) A-Z, a-z All the choices | All the choices |
| A feature of Netbeans that makes it to have an easily configured user interface and a modular architecture extensible with additional plugins. web development project system environment | environment |
| double data type has a width of 16 in bytes. true false | false |
| An IDE doesn't have Compiler and/or interpreter. true false | false |
| printf()provides string formatting. false true | true |
| It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers. Netbeans Matter Netbeans Matisse Netbeans Matching | Netbeans Matisse |
| What is the use of Access modifier "public" in Java language? To call the main method outside of Class or Package by JVM None of the above To hide the main method from misuse To protect main method | To call the main method outside of Class or Package by JVM |
| nextBool() reads a boolean value from the user. true false | 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 NetBeans Mobility Pack NetBeans Profiler | NetBeans Platform |
| println does not belong to the System class. true false | false |
| long has a value that ranges from -32768 to 32767 true false | false |
| Most IDEs today doesn't have GUI modeling utilities that simplify the development of UIs. false true | false |
| A multi-line comment enclosed within /* …. **/ false true | true |
| float has a width of 8 bytes true false | false |
| %d is for used for decimal false true | true |
| It is a computer software to help computer programmers develop software. Integration Development Environment Integrating Development Environment Integrated Developer Environment Integrated Development Environment | Integrated Development Environment |
| float has a width of 4 bytes. false true | true |
| Original name of Java Oak still Java none of the options Oac | Oak |
| nextLng () reads a long from the user. false true | false |
| Most IDEs today have GUI modeling utilities that simplify the development of UIs. false true | true |
| A java edition that provides a robust, flexible environment for applications running on embedded and mobile devices in the Internet of Things Standard Edition Enterprise Edition Micro Edition | Micro Edition |
| 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 NetBeans Profiler NetBeans Platform | NetBeans Mobility Pack |
| James Gosling works for what company when they developed java? Microsoft Oracle None of the options Sun Microsystems | Sun Microsystems |
| nextInteger () reads a integer value from the user. false true | true |
| An IDE has version control system true false | true |
| One of the tools for Object oriented design doesn't include class browser false true | true |
| It reads a byte value from the user. nextB nextByte() nextB() nextByte | nextByte() |
| The loader for java applications. java javac javadoc | java |
| All methods and variables in Java language are kept inside a method? true false | false |
| short has a width of 4 bytes false true | false |
| An IDE consists of a debugger true false | true |
| James Gosling works for Microsoft when he developed java? True False | False |
| boolean data type has only two values true false | true |
| nextFloat () reads a float value from the user. true false | true |
| out is a private static field true false | false |
| static is a not the state of a method false true | false |
| byte has a minimum value of -127 false true | false |
| byte has a maximum value of 128 false true | false |
| The main method is declared public so that it is accessible as part of the public interface of the program. false true | true |
| IDE stands for? Integrated Development Environment Integrated Developer Environment Integrating Development Environment Integration Development Environment | Integrated Development Environment |
| String args[] in main method are used for? public static void main(String args[]) { // } Nothing Passing arguments at run time Passing arguments at compile time Counting number of words | Passing arguments at run time |
| A function in C language is similar to what in Java language? Variable None of the above Method Member | Method |
| A multi-line comment enclosed within /* */ false true | true |
| Reserved words are names that are given by the programmer as name of variables, methods or functions, classes etc true false | false |
| The System class is a part of the core Java language package of the Application Programming Interface (API) true false | true |
| A Netbeans feature that supports command lined vcs, supplying merging and diff tools and containing a built- in CVS client. Version control Support XML GUI Builder | Version control Support |
| Java Bytecode File Extension name. .java .javax .javac .class | .class |
| The class keyword defines a template for an object of derived type HelloWorld false true | true |
| The identifier name may be a reserved word. true false | false |
| In what year was java release as a core component of Sun Microsystems' Java platform? 1994 1996 1993 1995 | 1995 |
| A string is enclosed with double quotation marks. true false | true |
| The main method is static because it must be called before the class that hosts the method is instantiated false true | true |