SQL and VB.NET Programming Fundamentals

Test your knowledge of SQL database queries and VB.NET/.NET programming concepts including data structures, language features, and configuration.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Assembly manifest contains

  1. Assembly’s Identity
  2. Assembly’s Reference List
  3. Both A & B
  4. None of the above
Question 2 True/False

A ‘Queue’ Collection provides ‘first-in-first-out’ functionality:

  1. True
  2. False
Question 3 True/False

You can create Command Line applications using VB.Net

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

What is the output of the following code in Test class Class Myclass Dim Num as Integer Private Sub New (i as integer) Num=i End sub End class Class Test Sub Main() Dim c as Myclass C=New Myclass (10) End sub End Class

  1. Num variable of Myclass is initialized to 10
  2. Run Time Error
  3. Compiler Error
  4. StackOverflow Exception
Question 5 Multiple Choice (Single Answer)

How does VB.NET instantiates the .NET object

  1. Using NEW keyword
  2. Using CREATEOBJECT keyword
  3. Using GETOBJECT keyword
  4. Both A & B
Question 6 Multiple Choice (Single Answer)

Select the keyword used to compare the object variable?

  1. And
  2. OR
  3. IS
  4. OF
Question 7 Multiple Choice (Single Answer)

Web.Config file is of the type

  1. .vb
  2. XML
  3. Resource
  4. Aspx
Question 8 True/False

OPTION exists in VB.NET

  1. True
  2. False
Question 9 True/False

A DataSet can hold any number of tables

  1. True
  2. False
Question 10 True/False

Every .NET compliant compiler generates IL:

  1. True
  2. False
Question 11 Multiple Choice (Single Answer)

Casting from reference type to value or vice versa is called as

  1. Casting of variables
  2. Boxing/Unboxing
  3. Structure & Class conversion
  4. Stack & Heap Conversion
Question 12 Multiple Choice (Single Answer)

SQL support which of the following data model

  1. Hierarchical Database Model
  2. Relational Database Model
  3. Network Database Model
  4. File Management Model
Question 13 Multiple Choice (Single Answer)

The SQL command used to comment multiple lines is

  1. /* */
  2. ***
  3. rem
  4. None of the Above
Question 14 Multiple Choice (Single Answer)

SQL is a language for

  1. developing system programs
  2. relational database management system
  3. business applications only
  4. both A. and B.
Question 15 Multiple Choice (Single Answer)

The transformation functions used are

  1. CONVERT
  2. TRANSLATE
  3. DECODE
  4. Both B. and C.
Question 16 Multiple Choice (Single Answer)

The tables can be combined together in SQL using the concept of

  1. Normalization
  2. Indexing
  3. Sequence
  4. Join
Question 17 Multiple Choice (Single Answer)

Which of the following commands denote DML commands

  1. INSERT
  2. CREATE
  3. ALTER
  4. Both A. and B.
Question 18 Multiple Choice (Single Answer)

Consider an emp table having columns empno, empname, salary Which of the following queries sort emp table by empname and then by salary in descending order

  1. select empno, empname, salary from emp order by empname, salary desc;
  2. select empno from emp sort by empname, sal in desc;
  3. select empno, empname, salary from emp sort in empname, salary desc;
  4. select # from emp sort by empname and salary in desc;
Question 19 Multiple Choice (Single Answer)

Which of the following SQL statement create a sequence SE with starting value as 30 and in increments of 20?

  1. GENERATE SEQUENCE SE START WITH 30 ADD BY 20;
  2. CREATE SEQUENCE SE START WITH 30 ADD BY 20;
  3. CREATE SEQUENCE SE START WITH 30 INCREMENT BY 20;
  4. GENERATE SEQUENCE SE INITIATE WITH 30 INCREMENT BY 20;
Question 20 Multiple Choice (Single Answer)

Which of the following is not allowed while creating a table using CRRATE TABLE in SQL?

  1. Table name can be an oracle reserved word
  2. Table names must begin with a letter
  3. Table names can contain in it numbers also
  4. None of the Above