Sybase Database Fundamentals

Covers Sybase database concepts including indexes, constraints, cursors, SQL functions, stored procedures, and system tables

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Table with no clustered index is called

  1. AOL
  2. BOL
  3. DOL
  4. Heap
Question 2 Multiple Choice (Single Answer)

Which one is the level of index in the below list

  1. Intermediate level
  2. Header level
  3. Data level
  4. Binary level
Question 3 Multiple Choice (Single Answer)

Maximum columns added into index

  1. 31
  2. 32
  3. 225
  4. 2065
Question 4 Multiple Choice (Single Answer)

Which one of the following constraints enforces domain integrity?

  1. Primary key constraint
  2. Check constraint
  3. Foreign key constraint
  4. Unique constraint
Question 5 Multiple Choice (Single Answer)

Which database objects can a stored procedure create?

  1. View
  2. Index
  3. Default
  4. Extended stored procedure
Question 6 Multiple Choice (Single Answer)

Sub-queries can be nested in…

  1. DELETE statements only.
  2. INSERT statements only.
  3. UPDATE statements only.
  4. UPDATE, DELETE, INSERT and SELECT statements.
Question 7 Multiple Choice (Single Answer)

What will be the result of the following SQL statement: SELECT LEFT('Have a nice day.', 4)

  1. Have
  2. The statement will produce error.
  3. day.
  4. Missing parameter
Question 8 Multiple Choice (Single Answer)

Which one is the parameter of SP_Configure

  1. allow updates to system tables
  2. locking
  3. Setup
  4. no of lock
Question 9 Multiple Choice (Single Answer)

Which is not parameters for STUFF function

  1. First string
  2. Second string
  3. Start position
  4. End position
Question 10 Multiple Choice (Single Answer)

The file that store data in Sybase is usually called as

  1. Datafile
  2. Device
  3. Data Object
  4. Material
Question 11 Multiple Choice (Single Answer)

select trim(column_name1),left(column_name2,5),substring(column_name3,2,4) from Table1 - The result of the above statement is

  1. Blank removed Column_name1, first 5 character of column_name2,2 to 4 character part of string from Column_name3
  2. Blank removed Column_name1, last 5 character of column_name2,2 to 4 character part of string from Column_name3
  3. Blank removed Column_name1, first 5 character of column_name2 and 2,3,4,5 character part of string from Column_name3
  4. None of the above
Question 12 Multiple Choice (Single Answer)

@@sqlstatus can't have any of the below values

  1. 1
  2. 3
  3. 2
  4. None of the above
Question 13 Multiple Choice (Single Answer)

Which is not part of "case" keyword in sybase

  1. End case
  2. When
  3. then
  4. None of the above
Question 14 Multiple Choice (Single Answer)

which of the below functions are not used in Sybase

  1. Current_date
  2. Datachange
  3. Gettime
  4. Convert
Question 15 Multiple Choice (Single Answer)

Which one of the below is not related to Cursor

  1. Sensitive
  2. Forward
  3. Fetch
  4. Position
Question 16 True/False

Some of the core sys tables can be updated, true or false

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

Which of the following statements is NOT true of local variables?

  1. Their name must begin with @
  2. They are local to the batch or stored procedure where they are declared
  3. They can be declared in a select statement
  4. They cannot have a datatype of text or image
Question 18 Multiple Choice (Single Answer)

Total no of index in the user tables

  1. 250
  2. 255
  3. 2065
  4. 1026
Question 19 True/False

It is possible to create a constraints on the existing tables by creating new column

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

is related to

  1. Index
  2. Page allocation
  3. Trigger creation
  4. None of the above