Comprog2 Boss.pdf - 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

Comprog2 Boss.pdf - ITE-6104 Computer Programming 2 Which...

This preview shows page 1 - 9 out of 119 pages.

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
Image of page 1
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
Image of page 2
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
Image of page 3
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:
Image of page 4
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
Image of page 5
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
Image of page 6
ITE-6104 Computer Programming 2 Which of the following is a valid statement to accept String input? Select one: a. String num = scan.nextText(); b. None of these c. string str = scan.nextShort(); d. String str = JOptionPane.showInputDialog(""); e. String str = scan.nextString(); Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text What will be the value of x after you execute this statement int z=0; for(int x=0; x<10; x++) for(int y=0; y<x; y++) z*=(x*y); Select one: a. 128 b. 1 c. 512 d. None of these
Image of page 7
e. 236 Feedback Your answer is correct.
Image of page 8
Image of page 9

You've reached the end of your free preview.

Want to read all 119 pages?

  • Fall '20
  • following method

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture