Programming Fundamentals: .NET, Java, and SQL

Test your knowledge of programming concepts including .NET framework, Java programming language features, and SQL database operations.

19 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is/are the role(s) of CTS (Common Type System) in .Net framework?

  1. It provides cross language integration.
  2. CTS defines the rules that are followed by the different languages.
  3. CTS provides an object oriented model to the implementation of the many programming languages.
  4. It defines the rules that ensures that the data types of objects written in various languages are able to interact among them.
  5. All of the above
Question 2 Multiple Choice (Single Answer)

Which of the following characteristics of the class is called 'sealed' class in .Net framework?

  1. The class, which specifies that the another class cannot be derived form this type.
  2. The class, which cannot be instantiated.
  3. A class, which is used to provide the implementation of the one or more interface members.
  4. No such class exists in .Net framework.
  5. None of these
Question 3 Multiple Choice (Single Answer)

Which of the following statements is/are true in .Net framework?

  1. CLR (Common Language Runtime) compiles the source code into intermediate language.
  2. CLR provides type safety to the code.
  3. CLR provides language independence in .Net framework.
  4. All of the above
  5. Only (1) and (2)
Question 4 Multiple Choice (Single Answer)

Which of the following database servers is/are supported by Borland Data Provider in ADO .Net?

  1. Oracle
  2. SQL server
  3. IBM DB2
  4. All of the above
  5. Only (2) and (3)
Question 5 Multiple Choice (Single Answer)

Which of the following is not true about C# language?

  1. C# is an object oriented language.
  2. C# supports preprocessor directives.
  3. C# supports operator overloading.
  4. C# supports exception handling.
  5. None of these
Question 6 Multiple Choice (Single Answer)

Which of the following is not defined as a constraint in SQL (Structured Query Language)?

  1. Check
  2. Foreign key
  3. Primary key
  4. Default
  5. None of these
Question 7 Multiple Choice (Single Answer)

What is the significance of 'Exists' clause in SQL query?

  1. It allows multiple values in where clause.
  2. It is used to display records according to specified condition.
  3. It defines that the subquery return atleast one row from the database table.
  4. It is used to sort the data of the table.
  5. None of these
Question 8 Multiple Choice (Single Answer)

Which of the following is a combination of NOT NULL and UNIQUE?

  1. Foreign key
  2. Primary key
  3. Check
  4. Default
  5. None of these
Question 9 Multiple Choice (Single Answer)

Which of the following commands is used to save the changes in the database table?

  1. Savepoint
  2. Commit
  3. Rollback
  4. Set transaction
  5. None of these
Question 10 Multiple Choice (Single Answer)

Which of the following is not a property of swing in java?

  1. Swing components are platform independent.
  2. Swing components requires more memory space.
  3. Swing components are more flexible.
  4. Swing components require javax.swing package.
  5. None of these
Question 11 Multiple Choice (Single Answer)

What is the value of setResizable() method in java AWT (Abstract Window Toolkit)?

  1. It returns a value true or false.
  2. It returns always a true value.
  3. It does not return any value.
  4. There is no such method in AWT.
  5. None of these
Question 12 Multiple Choice (Single Answer)

What is tabbed pane in swing in java?

  1. It represents a rectangular area for viewing the components.
  2. It is a group of folders and only one folder can be selected at one time.
  3. It is a component to represent the hierarchical view of the data.
  4. It is a combination of a text field and a drop down list.
  5. None of these
Question 13 Multiple Choice (Single Answer)

Which of the following statements is/are true in java swing?

  1. JButton class can associate with the icon or string with the button.
  2. JApplet class supports various panes.
  3. JCheckBox is a concrete implementation of AbstractButton.
  4. All of the above
  5. Only (1) and (2)
Question 14 Multiple Choice (Single Answer)

Which of the following methods of the Map interface is used to search the specified key form this map?

  1. public boolean containsKey(Object key)
  2. public Set keySet()
  3. public Set entrySet()
  4. public Object get(Object key)
  5. none of these
Question 15 Multiple Choice (Single Answer)

Which of the following is not a method of the Vector class in java collection framework?

  1. Object clone()
  2. void clear()
  3. void add(int index, Object element)
  4. boolean add(Object o)
  5. None of these
Question 16 Multiple Choice (Single Answer)

Which of the following classes allows duplicate values in java collection framework?

  1. TreeSet
  2. TreeMap
  3. ArrayList
  4. Set
  5. None of these
Question 17 Multiple Choice (Single Answer)

Which of the following statements is/are true?

  1. TreeMap maintains the ascending order of the elements.
  2. TreeMap does not allow null keys.
  3. HashMap allows null key.
  4. There is no order of elements in the HashMap class.
  5. All of the above
Question 18 Multiple Choice (Single Answer)

What is the use of interface in java?

  1. It provides data encapsulation.
  2. It resolves the multiple inheritance problem in java.
  3. It provides the behaviour of the application.
  4. All of the above
  5. Only (1) and (2)
Question 19 Multiple Choice (Single Answer)

Which of the following is not a method of Object class in java?

  1. Clone()
  2. toString()
  3. Finalize()
  4. valueOf()
  5. Equals()