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.
Questions
Assembly manifest contains
- Assembly’s Identity
- Assembly’s Reference List
- Both A & B
- None of the above
A ‘Queue’ Collection provides ‘first-in-first-out’ functionality:
- True
- False
You can create Command Line applications using VB.Net
- True
- False
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
- Num variable of Myclass is initialized to 10
- Run Time Error
- Compiler Error
- StackOverflow Exception
How does VB.NET instantiates the .NET object
- Using NEW keyword
- Using CREATEOBJECT keyword
- Using GETOBJECT keyword
- Both A & B
Select the keyword used to compare the object variable?
- And
- OR
- IS
- OF
Web.Config file is of the type
- .vb
- XML
- Resource
- Aspx
OPTION exists in VB.NET
- True
- False
A DataSet can hold any number of tables
- True
- False
Every .NET compliant compiler generates IL:
- True
- False
Casting from reference type to value or vice versa is called as
- Casting of variables
- Boxing/Unboxing
- Structure & Class conversion
- Stack & Heap Conversion
SQL support which of the following data model
- Hierarchical Database Model
- Relational Database Model
- Network Database Model
- File Management Model
The SQL command used to comment multiple lines is
- /* */
- ***
- rem
- None of the Above
SQL is a language for
- developing system programs
- relational database management system
- business applications only
- both A. and B.
The transformation functions used are
- CONVERT
- TRANSLATE
- DECODE
- Both B. and C.
The tables can be combined together in SQL using the concept of
- Normalization
- Indexing
- Sequence
- Join
Which of the following commands denote DML commands
- INSERT
- CREATE
- ALTER
- Both A. and B.
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
- select empno, empname, salary from emp order by empname, salary desc;
- select empno from emp sort by empname, sal in desc;
- select empno, empname, salary from emp sort in empname, salary desc;
- select # from emp sort by empname and salary in desc;
Which of the following SQL statement create a sequence SE with starting value as 30 and in increments of 20?
- GENERATE SEQUENCE SE START WITH 30 ADD BY 20;
- CREATE SEQUENCE SE START WITH 30 ADD BY 20;
- CREATE SEQUENCE SE START WITH 30 INCREMENT BY 20;
- GENERATE SEQUENCE SE INITIATE WITH 30 INCREMENT BY 20;
Which of the following is not allowed while creating a table using CRRATE TABLE in SQL?
- Table name can be an oracle reserved word
- Table names must begin with a letter
- Table names can contain in it numbers also
- None of the Above