Java and C# Programming Fundamentals

Test your knowledge of Java and C# programming concepts including JDBC, I/O streams, collections, servlets, applets, and object-oriented programming principles.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Java enables the creation of cross-platform programs by compiling into an intermediate representation called Java

  1. Byte Code
  2. Firewall
  3. Tetra Code
  4. View Code
Question 2 True/False

enum is a Keyword in Java, introduced from J2SE 5

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

Java support RMI. What does this RMI stands for?

  1. Random Memory Interface
  2. Remote Method Invocation
  3. Random Method Invocation
  4. Remote Memory Interface
Question 4 Multiple Choice (Single Answer)

An _________ is a special kind of Java program that is designed to be transmitted over the Internet

  1. Viewlet
  2. Servlet
  3. Object
  4. Applet
Question 5 True/False

In Java, a source file is officially called a compilation unit

  1. True
  2. False
Question 6 Multiple Choice (Single Answer)

The peerless components are called

  1. Heavy weight components
  2. Medium weight components
  3. Light weight components
  4. None
Question 7 Multiple Choice (Single Answer)

The list of locations for the compiler to search in order to resolve class names at compile time is called _______

  1. build path
  2. runtime classpath
  3. Both (A) and (B )
  4. None
Question 8 Multiple Choice (Single Answer)

In order to use a servlet for handling the submission of a web form, subclass HttpServlet() and put service code in ______

  1. service() method
  2. getServletInfo() method
  3. doGet() or doPost() method
  4. None
Question 9 Multiple Choice (Single Answer)

Choose the false statement among these?

  1. Servlets are server side components
  2. Applets have GUI interface
  3. Servlets have GUI interface
  4. Applets are client side components
Question 10 True/False

You Can inherit multiple interfaces.

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

Whats the implicit name of the parameter that gets passed into the class set method?

  1. Parameter
  2. Value
  3. Index
  4. Object
Question 12 True/False

You can declare the override method static while the original method is non-static.

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

C# provides a default constructor for me. I write a constructor that takes a string as a parameter, but want to keep the no parameter one. How many constructors should I write?

  1. One
  2. Two
  3. Nill
  4. None
Question 14 True/False

You can override private virtual methods?

  1. True
  2. False
Question 15 True/False

Vector.size() refers to the space alloted to the vector

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

StringTokenizer st= new StringTokenizer(String s). The output string is tokenized based on

  1. comma
  2. space
  3. single quote
  4. double quote
Question 17 Multiple Choice (Single Answer)

Try catch block should be used whenever

  1. I/O operation
  2. Database operation
  3. Networking
  4. All of the above
  5. None of the above
Question 18 Multiple Choice (Multiple Answers)

Output Stream corresponding to the Sequence Input Stream

  1. Sequence Output Stream
  2. Print Stream
  3. None of the above
  4. 1 and 2
Question 19 Multiple Choice (Multiple Answers)

The below statement returns ?executeUpdate(String sql)...

  1. Resultset
  2. Prepared Statement
  3. Statement
  4. Number of rows retrieved