Computer Fundamentals

This test consists of questions related to computer programming languages, database and computer network etc.

18 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following properties of Java language is used to eliminate the error prone conditions?

  1. Robust
  2. Interpreted
  3. High Performance
  4. Dynamic
  5. None of the above
Question 2 Multiple Choice (Single Answer)

Which of the following codes is used to print a signed decimal integer?

  1. %d
  2. %c
  3. %u
  4. %i
  5. None of the above
Question 3 Multiple Choice (Single Answer)

Which of the following is not a HTTP header?

  1. Expires: Date
  2. Location: URL
  3. Last-modified: Date
  4. PATH_INFO
  5. None of the above
Question 4 Multiple Choice (Single Answer)

___ operator is used to ensure that whether a certain name is defined as a macro in C language.

  1. Define
  2. Pragma
  3. Token parsing (##)
  4. Both (1) and (3)
  5. None of the above
Question 5 Multiple Choice (Single Answer)

Which of the following CGI (Common Gateway Interface) Environment Variables defines the server's hostname or IP Address?

  1. SERVER_NAME
  2. SERVER_SOFTWARE
  3. SCRIPT_NAME
  4. Both (1) and (2)
  5. None of the above
Question 6 Multiple Choice (Single Answer)

Which of the following operators is used to access the members of a structure?

  1. Member access operator (.)
  2. -> operator
  3. = operator
  4. ! opearator
  5. None of the above
Question 7 Multiple Choice (Single Answer)

Which of the following is a false statement?

  1. Structure is the user defined data type .
  2. Structures are used to combine different data elements.
  3. Structures are used to represent the records.
  4. We can define pointer to structures.
  5. None of the above
Question 8 Multiple Choice (Single Answer)

Which of the following is not a server side scripting language?

  1. PHP
  2. Java
  3. C#
  4. Ruby
  5. None of the above
Question 9 Multiple Choice (Single Answer)

Which of the following is true about 'restrict' type qualifiers in C++?

  1. A restrict pointer ensures the only means by which the object it points to can be accessed.
  2. It ensures that the variable's value may be changed in ways not explicitly specified by the program.
  3. It ensures that we can not change objects of type const during program execution.
  4. It is not defined in C++.
  5. None of the above
Question 10 Multiple Choice (Single Answer)

Which of the following is used to select a displayed menu item or draw pictures on the monitor screen?

  1. Track Ball
  2. Light Pen
  3. Scanner
  4. Both (1) and (2)
  5. None of the above
Question 11 Multiple Choice (Single Answer)

Which of the following is a false statement about RAM (Random Access Memory)?

  1. Static RAM has short data lifetime.
  2. Static RAM is faster then dynamic RAM.
  3. Dynamic RAM is lesser in size.
  4. Both (1) and (2)
  5. None of the above
Question 12 Multiple Choice (Single Answer)

Which of the following modifiers is used for threads in Java?

  1. Synchronized
  2. Volatile
  3. Static
  4. All of the above
  5. Both (1) and (2)
Question 13 Multiple Choice (Single Answer)

Which of the following modifiers in Java is visible to packages and all its subclasses?

  1. Default
  2. Public
  3. Protected
  4. Private
  5. None of the above
Question 14 Multiple Choice (Single Answer)

Which of the following String methods is used to return a canonical representation for the string object?

  1. String intern()
  2. String trim()
  3. String toString()
  4. Both (1) and (2)
  5. None of the above
Question 15 Multiple Choice (Single Answer)

What does fillInStackTrace() method do in java exception?

  1. It is used to return a detailed message about the exception that has occurred.
  2. It is used to fill the stack trace of object with the current stack trace, adding to any previous information in the stack trace.
  3. It is used to return the cause of the exception as represented by a Throwable object.
  4. It is not a method of exception in java.
  5. None of the above
Question 16 Multiple Choice (Single Answer)

Which of the following files has .jsp and .js files?

  1. Jar files
  2. War files
  3. Ear files
  4. Both (2) and (3)
  5. None of the above
Question 17 Multiple Choice (Single Answer)

Which of the following is/are true statements about finally block in java?

  1. By using a finally block allows you to run any cleanup-type statements .
  2. A finally keyword is used to create a block of code that follows a try block.
  3. A finally block appears at the end of the catch blocks.
  4. All of the above
  5. Both (1) and (2)
Question 18 Multiple Choice (Single Answer)

Which of the following is/are true statement(s)?

  1. Applet executes on browser.
  2. Servlet has no graphical user interface.
  3. Servlets can be used in web as well as desktop applications.
  4. All of the above
  5. Both (1) and (2)