Computer Programming
This test consists of questions based on computer programming, database, computer basics, data structures etc.
Questions
Which of the following objects in .Net require(s) installation in the network?
- COM (Component Object Model)
- DCOM (Distributed Component Object Model)
- Both (1) and (2)
- None of the above
- These objects do not exist in .Net framework
What is the role of render method in ASP .Net life cycle events?
- It ensures that all the initializations are complete.
- It is used to set the properties of controls and establish database connections.
- Every page control calls this method to output the control's markup.
- It is used to clean up tasks and close the database connections.
- None of the above
Which of the following is/are the default storage class(es) for global variables in C language?
- Auto
- Static
- Extern
- Register
- Both (2) and (3)
Which of the following statement(s) is/are true?
- ASP.Net has XML-based components
- ASP.Net provides user authentication
- ASP.Net provides better language support
- All of the above
- Only (1) and (3)
What is/are the role(s) of strcmp() function in C language?
- This function is used to compare the two strings.
- This method returns true, if both the strings are identical.
- This method returns false, if both of the strings are not equal.
- All of the above
- None of the above
Which of the following statement(s) is/are true about the strings in C language?
- substr function is used to find the specified string.
- In the syntax substr(string1, string2, 7, 5), the source string is string1.
- In the syntax substr(string1, string2, 7, 5), the source string is string2.
- Both (1) and (2).
- Both (1) and (3).
In C language, when are the two pointers said to be equal?
- If they point to the same cell in an array
- If they point to the same variable
- Two pointers cannot be equal
- All of the above
- Only (1) and (2)
What is the value of long double?
- 8
- 10
- 12
- 4
- None of the above
What is the role of 'atoi' function in C language?
- This function is used to convert the integer into float type.
- This method is used to convert the string of digits into the corresponding integer.
- This method is used to convert a string into an integer.
- This method is used to convert the characters into string format.
- None of the above
Which of the following statements is/are false in C language?
- A null pointer is a special pointer that does not point anywhere.
- We can declare the null pointer as int *a=NULL.
- We can declare the null pointer as int *a=0.
- NULL is also known as pre-processor macro.
- None of the above
Which of the following reserved word(s) is/are not currently used in Java?
- case
- const
- goto
- all of the above
- only (2) and (3)
Which of the following is/are the true statements(s) in C++ language?
- A function pointer is a function that is used to store the address of the function.
- Function pointers can be used to set callback functions.
- Virtual functions are implemented by the function pointers.
- All of the above are true.
- Only (1) and (3) are true.
Which of the following is/are true statement(s)?
- A view can be based on multiple tables and databases.
- The result set of the select statement is used to from the virtual table returned by the view in database.
- A view acts as a filter on the underlying tables referenced in the view.
- All of the above are true.
- Only (2) and (3).
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?
- Having clause
- Group by clause
- Distinct clause
- Order by clause
- None of the above
Which of the following services is/are provided by the middle tier in the three-tier architecture of data access?
- It provides system level services.
- It provides web components, such as Servlets and JavaServer Pages (JSPs), or standalone Java applications provide a dynamic interface to the other tier.
- It provides data persistency and storage.
- Both (1) and (2).
- None of the above
Which of the following class of the IP addresses has a range of 128-191?
- Class A
- Class B
- Class C
- Class D
- None of the above
Which of the following is/are field(s) in IPV4 protocol header?
- Source address
- Destination address
- Version
- Type of service
- All of the above
Which of the following is the package of Exception classes in Java?
- java.lang
- java.util
- java.io
- java.awt
- none of the above
Which of the following commands in SQL (Structured Query Language) deletes the table structure from the database?
- Delete
- Truncate
- Drop
- Alter
- None of the above
Which of the following is the example of unchecked exception in java?
- ArithmeticException
- ClassNotFoundException
- IllegalAccessException
- NoSuchFieldException
- NoSuchMethodException
Which of the following methods defines the entry point of a thread?
- start
- run
- join
- sleep
- isAlive
Which of the following protocols is used for sending email?
- FTP (File Transfer Protocol)
- SMTP (Simple Mail Transfer Protocol)
- HTTP (Hyper Text Transfer Protocol)
- IP (Internet Protocol)
- None of the above
Which of the following is/are method(s) of Exception class in Java?
- public Throwable getCause()
- public String toString()
- public void printStackTrace()
- public Throwable fillInStackTrace()
- all of the above
What is the meaning of 'NoSuchFieldException' in Java?
- It ensures that the access to a class is denied.
- It ensures that there is an attempt to create an object of an abstract class or interface.
- It ensures that one thread has been interrupted by another thread.
- It ensures that the particular class is not found.
- None of the above