Programming Fundamentals: .NET, Java, and SQL
Test your knowledge of programming concepts including .NET framework, Java programming language features, and SQL database operations.
Questions
What is/are the role(s) of CTS (Common Type System) in .Net framework?
- It provides cross language integration.
- CTS defines the rules that are followed by the different languages.
- CTS provides an object oriented model to the implementation of the many programming languages.
- It defines the rules that ensures that the data types of objects written in various languages are able to interact among them.
- All of the above
Which of the following characteristics of the class is called 'sealed' class in .Net framework?
- The class, which specifies that the another class cannot be derived form this type.
- The class, which cannot be instantiated.
- A class, which is used to provide the implementation of the one or more interface members.
- No such class exists in .Net framework.
- None of these
Which of the following statements is/are true in .Net framework?
- CLR (Common Language Runtime) compiles the source code into intermediate language.
- CLR provides type safety to the code.
- CLR provides language independence in .Net framework.
- All of the above
- Only (1) and (2)
Which of the following database servers is/are supported by Borland Data Provider in ADO .Net?
- Oracle
- SQL server
- IBM DB2
- All of the above
- Only (2) and (3)
Which of the following is not true about C# language?
- C# is an object oriented language.
- C# supports preprocessor directives.
- C# supports operator overloading.
- C# supports exception handling.
- None of these
Which of the following is not defined as a constraint in SQL (Structured Query Language)?
- Check
- Foreign key
- Primary key
- Default
- None of these
What is the significance of 'Exists' clause in SQL query?
- It allows multiple values in where clause.
- It is used to display records according to specified condition.
- It defines that the subquery return atleast one row from the database table.
- It is used to sort the data of the table.
- None of these
Which of the following is a combination of NOT NULL and UNIQUE?
- Foreign key
- Primary key
- Check
- Default
- None of these
Which of the following commands is used to save the changes in the database table?
- Savepoint
- Commit
- Rollback
- Set transaction
- None of these
Which of the following is not a property of swing in java?
- Swing components are platform independent.
- Swing components requires more memory space.
- Swing components are more flexible.
- Swing components require javax.swing package.
- None of these
What is the value of setResizable() method in java AWT (Abstract Window Toolkit)?
- It returns a value true or false.
- It returns always a true value.
- It does not return any value.
- There is no such method in AWT.
- None of these
What is tabbed pane in swing in java?
- It represents a rectangular area for viewing the components.
- It is a group of folders and only one folder can be selected at one time.
- It is a component to represent the hierarchical view of the data.
- It is a combination of a text field and a drop down list.
- None of these
Which of the following statements is/are true in java swing?
- JButton class can associate with the icon or string with the button.
- JApplet class supports various panes.
- JCheckBox is a concrete implementation of AbstractButton.
- All of the above
- Only (1) and (2)
Which of the following methods of the Map interface is used to search the specified key form this map?
- public boolean containsKey(Object key)
- public Set keySet()
- public Set entrySet()
- public Object get(Object key)
- none of these
Which of the following is not a method of the Vector class in java collection framework?
- Object clone()
- void clear()
- void add(int index, Object element)
- boolean add(Object o)
- None of these
Which of the following classes allows duplicate values in java collection framework?
- TreeSet
- TreeMap
- ArrayList
- Set
- None of these
Which of the following statements is/are true?
- TreeMap maintains the ascending order of the elements.
- TreeMap does not allow null keys.
- HashMap allows null key.
- There is no order of elements in the HashMap class.
- All of the above
What is the use of interface in java?
- It provides data encapsulation.
- It resolves the multiple inheritance problem in java.
- It provides the behaviour of the application.
- All of the above
- Only (1) and (2)
Which of the following is not a method of Object class in java?
- Clone()
- toString()
- Finalize()
- valueOf()
- Equals()