OOP JAVA FINAL EXAM

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/804

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

805 Terms

1
New cards

What is the default return type of a method in Java language?

Group of answer choices

short

None of the above

void

int

void

2
New cards

out keyword accepts output data

Group of answer choices

false

true

true

3
New cards

Choose a multiline comment in Java language below?

Group of answer choices

None of the above

/comments are going cars are moving/

/comments are going cars are moving/

//comments are going cars are moving//

/comments are going cars are moving/

4
New cards

The class keyword defines a template for an object of derived type HelloWorld

Group of answer choices

false

true

true

5
New cards

Sun Microsystems is now a subsidiary of Microsoft Corporation?

Group of answer choices

False

True

False

6
New cards

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.

Group of answer choices

Award Winning Debugger

Code Editor

Refactoring

Code Editor

7
New cards

main method is void because the Java interpreter does not expect to receive or process any output from the class.

Group of answer choices

true

false

true

8
New cards

The System class is a part of the core Java language package of the Application Programming Interface (API)

Group of answer choices

true

false

true

9
New cards

nextLine () reads a String value from the user.

Group of answer choices

true

false

true

10
New cards

All methods and variables in Java language are kept inside a Class?

Group of answer choices

true

false

true

11
New cards

Every statement in Java language should end with ":"?

Group of answer choices

true

false

false

12
New cards

Escape character for new line.

Group of answer choices

\\

\t

\n

\n

13
New cards

An IDE consists of a source code editor

Group of answer choices

false

true

true

14
New cards

A feature of java that means Java technology is designed to support applications that will be deployed into heterogeneous network environments

Group of answer choices

Simple, object-oriented, and familiar

Robust and secure

Architecture neutral and portable

Interpreted, threaded, and dynamic

High performance

Architecture neutral and portable

15
New cards

The project startup name of Netbeans.

Group of answer choices

Xelf

Xelfie

Xelfi

Selfi

Xelfi

16
New cards

An IDE doesn't have Compiler and/or interpreter.

Group of answer choices

false

true

false

17
New cards

print() prints string inside the quotes and leaves the prompt the same line.

Group of answer choices

true

false

true

18
New cards

The System keyword defines a template for an object of derived type HelloWorld

Group of answer choices

false

true

false

19
New cards

Choose a correct version of Java Documentation Comment?

Group of answer choices

/*comments/

/*comments*/

/ Comments/

/ comments*/

/ comments*/

20
New cards

The loader for java applications.

Group of answer choices

java

javadoc

javac

java

21
New cards

A file that is compiled to produce bytecode file

Group of answer choices

java source code

class file

procedures

word file

java source code

22
New cards

boolean data type has only two values

Group of answer choices

true

false

true

23
New cards

One of the tools for Object oriented design doesn't include class hierarchy diagram

Group of answer choices

false

true

false

24
New cards

A string is enclosed with double quotation marks.

Group of answer choices

true

false

true

25
New cards

Dennis Ritchie developed Java?

Group of answer choices

False

True

False

26
New cards

An IDE doesn't have a source code editor

Group of answer choices

false

true

false

27
New cards

Correct command for compiling a file named "Hello.java" using console.

Group of answer choices

javac Hello.java

java Hello.java

java Hello.txt

javac Hello.txt

javac Hello.java

28
New cards

nextInteger () reads a integer value from the user.

Group of answer choices

true

false

false

29
New cards

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 ________.

Group of answer choices

virtual machine

virtual computer

logical machine

logical computer

virtual machine

30
New cards

What is the name of the class in this program:

class HelloJava{

public static void main(String args[ ]){

System.out.println("Hello Java");

}

}

Group of answer choices

HelloJava

main

String args

System

HelloJava

31
New cards

A single-line comment starts with //

Group of answer choices

false

true

true

32
New cards

It reads a byte value from the user.

Group of answer choices

nextB

nextB()

nextByte()

nextByte

nextByte()

33
New cards

nextBoolean() reads a boolean value from the user.

Group of answer choices

false

true

true

34
New cards

A documentation or javadoc comment is enclosed between / and */

Group of answer choices

false

true

false

35
New cards

A Netbeans feature that provides information about the runtime behavior of applications

Group of answer choices

NetBeans Mobility Pack

NetBeans Platform

NetBeans Profiler

NetBeans Profiler

36
New cards

It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers.

Group of answer choices

Netbeans Matching

Netbeans Matisse

Netbeans Matter

37
New cards

An IDE doesn't have build-automation tools.

Group of answer choices

true

false

false

38
New cards

%d is for used for date

Group of answer choices

true

false

false

39
New cards

Java source code is compiled to produce bytecode file

Group of answer choices

False

True

True

40
New cards

println()provides string formatting.

Group of answer choices

false

true

false

41
New cards

static is a state of a method

Group of answer choices

false

true

true

42
New cards

Correct command for running a java application named "Hello.java" using console

Group of answer choices

java Hello.txt

java Hello

javac Hello.txt

javac Hello.java

java Hello

43
New cards

println does not belong to the System class.

Group of answer choices

true

false

true but its marked incorrect in canvas, answer false

44
New cards

Choose a Single Line Comment in Java Language below?

Group of answer choices

Some comments//

//Some comments

/Some comments/

/Some comments/

//Some comments

45
New cards

It reads a long value from the user.

Group of answer choices

nextLong()

nextLng

nextLng()

nextLong

nextLong()

46
New cards

Netscape Navigator was developed in 1995 to support Java.

Group of answer choices

True

False

True

47
New cards

nextFlt () reads a float value from the user.

Group of answer choices

true

false

false

48
New cards

An IDE has version control system

Group of answer choices

false

true

true

49
New cards

A command for the documentation generator

Group of answer choices

java

javac

javadoc

javadoc

50
New cards

Sun Microsystems is now a subsidiary of ?

Apple Corporation

Oracle Corporation

None of the options

Microsoft Corporation

Oracle Corporation

51
New cards

It reads a boolean value from the user.

Group of answer choices

nextBool

nextBoolean

nextBoolean()

nextBool()

nextBoolean()

52
New cards

A feature of java that means that the Java interpreter can execute the bytecodes directly on any machine to which the interpreter

Group of answer choices

High performance

Architecture neutral and portable

Robust and secure

Simple, object-oriented, and familiar

Interpreted, threaded, and dynamic

Interpreted, threaded, and dynamic

53
New cards

Java Wrapper Classes are used in converting one data type into another data type.

Group of answer choices

true

false

true

54
New cards

String is a derived data type

Group of answer choices

false

true

true

55
New cards

One of the tools for Object oriented design doesn't include class browser

Group of answer choices

false

true

false

56
New cards

printf()provides string formatting.

false

true

true

57
New cards

What is the feature of Netbeans for Language independent debugger core, variable modification and watches, various breakpoints and "Fix and Continue" mechanism.

Group of answer choices

Code Editor

Award Winning Debugger

Refactoring

Award Winning Debugger

58
New cards

double and float data types are used for numbers with decimal places

Group of answer choices

true

false

true

59
New cards

A feature of of Netbeans for supporting the J2EE 1.3 and 1.4 standards with web application build support based on Apache Ant.

Group of answer choices

web development

project system

environment

web development

60
New cards

One of the tools for Object oriented design doesn't include object inspector

Group of answer choices

false

true

false

61
New cards

Oke was the original name of Java

True

False

False

62
New cards

long has a value that ranges from -32768 to 32767

Group of answer choices

false

true

false, it's for short

63
New cards

All methods and variables in Java language are kept inside a method?

Group of answer choices

true

false

false

64
New cards

It provides simple and intuitive layout of GUIs without having to understand the complexities of Swing layout managers.

Group of answer choices

Netbeans Matisse

Netbeans Matching

Netbeans Matter

Netbeans Matisse

65
New cards

Correct way of displaying a string output is:

System.out.println("some text here");

Group of answer choices

false

true

true

66
New cards

Netbeans started as a student project called Xelfi

Group of answer choices

true

false

true

67
New cards

It is a computer software to help computer programmers develop software.

Group of answer choices

Integrating Development Environment

Integrated Developer Environment

Integrated Development Environment

Integration Development Environment

Integrated Development Environment

68
New cards

A feature of Netbeans for renaming, changing and moving of various objects, field encapsulation and usage finding.

Group of answer choices

Award Winning Debugger

Refactoring

Code Editor

Refactoring

69
New cards

%d is for used for decimal

Group of answer choices

true

false

true

70
New cards

The identifier name may be a reserved word.

Group of answer choices

false

true

false

71
New cards

Every statement in Java language should end with ","?

false

true

false

72
New cards

A Netbeans feature that is used to write, test, and debug applications for the Java Micro Edition platform (J2ME) technology-enabled mobile devices

Group of answer choices

NetBeans Platform

NetBeans Profiler

NetBeans Mobility Pack

NetBeans Mobility Pack

73
New cards

What is the use of Access modifier "public" in Java language?

Group of answer choices

None of the above

To call the main method outside of Class or Package by JVM

To protect main method

To hide the main method from misuse

To call the main method outside of Class or Package by JVM

74
New cards

nextLn () reads a String value from the user.

Group of answer choices

true

false

false

75
New cards

A multi-line comment enclosed within / .... */

Group of answer choices

true

false

false

76
New cards

File extension name of a java file is .javac.

Group of answer choices

True

False

False

77
New cards

Who developed Java?

Group of answer choices

Dennis Ritchie

James Gosling

None of the options

Bjarne Stroustrup

James Gosling

78
New cards

A Netbeans feature that supports command lined vcs, supplying merging and diff tools and containing a built- in CVS client.

Group of answer choices

XML

Version control Support

GUI Builder

Version control Support

79
New cards

float has a width of 4 bytes.

Group of answer choices

false

true

true

80
New cards

File extension name of a java file.

Group of answer choices

.class

.javac

.javax

.java

.java

81
New cards

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.

Group of answer choices

false

true

false

82
New cards

System is a method

Group of answer choices

false

true

false

83
New cards

IDE stands for Integrated Design Environment

Group of answer choices

true

false

false

84
New cards

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");

}

}

Group of answer choices

main

System

Rectangle

String args

Rectangle

85
New cards

Scanner class is found on what java package?

Group of answer choices

java.io

javax.swing

java.Scanner

java.util

java.util

86
New cards

Java Primitive data types are used in converting one data type into another data type.

Group of answer choices

false

true

false

87
New cards

A documentation or javadoc comment is enclosed between /* and /

Group of answer choices

true

false

true

88
New cards

A feature of Netbeans for visual design editor with end-to-end support for enterprise applications.

Group of answer choices

Web Services Development

Enterprise Java Beans (EJB) Development

Java 2 Platform, Micro Edition (J2ME) MIDP development

Java 2 Platform, Micro Edition (J2ME) MIDP development

89
New cards

System is a class

Group of answer choices

true

false

true

90
New cards

Correct command for running a java application named "HelloWorld.java" using console

Group of answer choices

javac HelloWorld.txt

javac HelloWorld.java

java HelloWorld

java HelloWorld.txt

java HelloWorld

91
New cards

Scanner class used to get user input.

Group of answer choices

false

true

true

92
New cards

nextLng () reads a long from the user.

Group of answer choices

false

true

false

93
New cards

Most IDEs today have GUI modeling utilities that simplify the development of UIs.

Group of answer choices

false

true

true

94
New cards

nextInt() reads a integer value from the user.

Group of answer choices

false

true

true

95
New cards

Every statement in Java language should end with a?

Group of answer choices

Dot or Period

Colon

Comma

Semicolon

Semicolon

96
New cards

Netbeans started as a student project called Selfie

Group of answer choices

false

true

false, its Xelfi

97
New cards

A method that prints string inside the quotes and leaves the prompt the same line.

Group of answer choices

println()

print()

printf()

print()

98
New cards

Java is a portable language that could run on any platform

Group of answer choices

True

False

True

99
New cards

"\\\" is an escape character for printing '\'.

Group of answer choices

false

true

false

100
New cards

Name of a Class, Variable, Method or an Interface in Java language is called?

Argument

None of the above

Identifier

Value

Identifier