Computer Programming

This test consists of questions based on computer programming, database, computer basics, data structures etc.

24 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following objects in .Net require(s) installation in the network?

  1. COM (Component Object Model)
  2. DCOM (Distributed Component Object Model)
  3. Both (1) and (2)
  4. None of the above
  5. These objects do not exist in .Net framework
Question 2 Multiple Choice (Single Answer)

What is the role of render method in ASP .Net life cycle events?

  1. It ensures that all the initializations are complete.
  2. It is used to set the properties of controls and establish database connections.
  3. Every page control calls this method to output the control's markup.
  4. It is used to clean up tasks and close the database connections.
  5. None of the above
Question 3 Multiple Choice (Single Answer)

Which of the following is/are the default storage class(es) for global variables in C language?

  1. Auto
  2. Static
  3. Extern
  4. Register
  5. Both (2) and (3)
Question 4 Multiple Choice (Single Answer)

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

  1. ASP.Net has XML-based components
  2. ASP.Net provides user authentication
  3. ASP.Net provides better language support
  4. All of the above
  5. Only (1) and (3)
Question 5 Multiple Choice (Single Answer)

What is/are the role(s) of strcmp() function in C language?

  1. This function is used to compare the two strings.
  2. This method returns true, if both the strings are identical.
  3. This method returns false, if both of the strings are not equal.
  4. All of the above
  5. None of the above
Question 6 Multiple Choice (Single Answer)

Which of the following statement(s) is/are true about the strings in C language?

  1. substr function is used to find the specified string.
  2. In the syntax substr(string1, string2, 7, 5), the source string is string1.
  3. In the syntax substr(string1, string2, 7, 5), the source string is string2.
  4. Both (1) and (2).
  5. Both (1) and (3).
Question 7 Multiple Choice (Single Answer)

In C language, when are the two pointers said to be equal?

  1. If they point to the same cell in an array
  2. If they point to the same variable
  3. Two pointers cannot be equal
  4. All of the above
  5. Only (1) and (2)
Question 8 Multiple Choice (Single Answer)

What is the value of long double?

  1. 8
  2. 10
  3. 12
  4. 4
  5. None of the above
Question 9 Multiple Choice (Single Answer)

What is the role of 'atoi' function in C language?

  1. This function is used to convert the integer into float type.
  2. This method is used to convert the string of digits into the corresponding integer.
  3. This method is used to convert a string into an integer.
  4. This method is used to convert the characters into string format.
  5. None of the above
Question 10 Multiple Choice (Single Answer)

Which of the following statements is/are false in C language?

  1. A null pointer is a special pointer that does not point anywhere.
  2. We can declare the null pointer as int *a=NULL.
  3. We can declare the null pointer as int *a=0.
  4. NULL is also known as pre-processor macro.
  5. None of the above
Question 11 Multiple Choice (Single Answer)

Which of the following reserved word(s) is/are not currently used in Java?

  1. case
  2. const
  3. goto
  4. all of the above
  5. only (2) and (3)
Question 12 Multiple Choice (Single Answer)

Which of the following is/are the true statements(s) in C++ language?

  1. A function pointer is a function that is used to store the address of the function.
  2. Function pointers can be used to set callback functions.
  3. Virtual functions are implemented by the function pointers.
  4. All of the above are true.
  5. Only (1) and (3) are true.
Question 13 Multiple Choice (Single Answer)

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

  1. A view can be based on multiple tables and databases.
  2. The result set of the select statement is used to from the virtual table returned by the view in database.
  3. A view acts as a filter on the underlying tables referenced in the view.
  4. All of the above are true.
  5. Only (2) and (3).
Question 14 Multiple Choice (Single Answer)

Which of the following SQL clauses is used to filter the result set of the database table according to the collection of the grouping data?

  1. Having clause
  2. Group by clause
  3. Distinct clause
  4. Order by clause
  5. None of the above
Question 15 Multiple Choice (Single Answer)

Which of the following services is/are provided by the middle tier in the three-tier architecture of data access?

  1. It provides system level services.
  2. It provides web components, such as Servlets and JavaServer Pages (JSPs), or standalone Java applications provide a dynamic interface to the other tier.
  3. It provides data persistency and storage.
  4. Both (1) and (2).
  5. None of the above
Question 16 Multiple Choice (Single Answer)

Which of the following class of the IP addresses has a range of 128-191?

  1. Class A
  2. Class B
  3. Class C
  4. Class D
  5. None of the above
Question 17 Multiple Choice (Single Answer)

Which of the following is/are field(s) in IPV4 protocol header?

  1. Source address
  2. Destination address
  3. Version
  4. Type of service
  5. All of the above
Question 18 Multiple Choice (Single Answer)

Which of the following is the package of Exception classes in Java?

  1. java.lang
  2. java.util
  3. java.io
  4. java.awt
  5. none of the above
Question 19 Multiple Choice (Single Answer)

Which of the following commands in SQL (Structured Query Language) deletes the table structure from the database?

  1. Delete
  2. Truncate
  3. Drop
  4. Alter
  5. None of the above
Question 20 Multiple Choice (Single Answer)

Which of the following is the example of unchecked exception in java?

  1. ArithmeticException
  2. ClassNotFoundException
  3. IllegalAccessException
  4. NoSuchFieldException
  5. NoSuchMethodException
Question 21 Multiple Choice (Single Answer)

Which of the following methods defines the entry point of a thread?

  1. start
  2. run
  3. join
  4. sleep
  5. isAlive
Question 22 Multiple Choice (Single Answer)

Which of the following protocols is used for sending email?

  1. FTP (File Transfer Protocol)
  2. SMTP (Simple Mail Transfer Protocol)
  3. HTTP (Hyper Text Transfer Protocol)
  4. IP (Internet Protocol)
  5. None of the above
Question 23 Multiple Choice (Single Answer)

Which of the following is/are method(s) of Exception class in Java?

  1. public Throwable getCause()
  2. public String toString()
  3. public void printStackTrace()
  4. public Throwable fillInStackTrace()
  5. all of the above
Question 24 Multiple Choice (Single Answer)

What is the meaning of 'NoSuchFieldException' in Java?

  1. It ensures that the access to a class is denied.
  2. It ensures that there is an attempt to create an object of an abstract class or interface.
  3. It ensures that one thread has been interrupted by another thread.
  4. It ensures that the particular class is not found.
  5. None of the above