KEMBAR78
Com prog-II | PDF | Java (Programming Language) | Compiler
0% found this document useful (0 votes)
48 views6 pages

Com prog-II

This document contains 10 multiple choice questions about computer programming 2 and Java programming. It asks about which tools can be used to write Java code, how Java code is compiled, the output of the Java compiler, runtime errors, and features of Java like being platform independent and multithreaded. The questions help test understanding of the Java programming language and development process.

Uploaded by

mark gonzales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views6 pages

Com prog-II

This document contains 10 multiple choice questions about computer programming 2 and Java programming. It asks about which tools can be used to write Java code, how Java code is compiled, the output of the Java compiler, runtime errors, and features of Java like being platform independent and multithreaded. The questions help test understanding of the Java programming language and development process.

Uploaded by

mark gonzales
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

ITE-6104 Computer Programming 2

Which of the following we are not allowed to write java source code?

Select one:

a. None of these 

b. NetBeans

c. Notepad

d. eclipse

e. BlueJ

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Can we directly compile codes from NetBeans?

Select one:

a. No, we can only write codes in NetBeans

b. Yes, because we can call Java compiler from NetBeans 


c. None of these

d. It depends, if there is a compiler embedded in NetBeans.

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is true about Runtime errors:

Select one:

a. Runtime errors occur when there is a design flaw in your program

b. Runtime errors occur after compilation.

c. Runtime errors occur during run-time. 

d. None of these

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Why do we need to set the path for JavaC in command line?

Select one:
a. To make JavaC available or accessible in command line. 

b. To resolve runtime error

c. To resolve syntax error

d. It is part of the compilation process

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is the correct statement to compile Java program in command line?

Select one:

a. javac HelloWorld

b. java HelloWorld

c. java HelloWorld.java

d. javac HelloWorld.java 

Question 6
Correct

Mark 1.00 out of 1.00

Flag question
Question text
What is the input for Java Compiler?

Select one:

a. Byte Code

b. Code

c. Native Code

d. Source Code 

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text
What did java generates after compiling the java source code?

Select one:

a. Executable file

b. Image file

c. Byte Code 

d. Class Code

Question 8
Correct

Mark 1.00 out of 1.00


Flag question

Question text
Which of the following is not the feature of java?

Select one:

a. Static 

b. None of these

c. Platform independent

d. Robust

e. Code Security

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text
The feature of Java which makes it possible to execute several tasks simultaneously.

Select one:

a. Multithreaded 

b. Platform independent

c. Robust
d. Code Security

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text
The Java feature, "write once, run anywhere", is termed as

Select one:

a. High Performance

b. Object Oriented

c. Platform independent 

d. Robust

You might also like