Sybase Quiz :: 1

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Nbans
N
Nbans
Community Contributor
Quizzes Created: 4 | Total Attempts: 7,214
Questions: 5 | Attempts: 470

SettingsSettingsSettings
SQL Quizzes & Trivia

Quiz for SQL, T-SQL


Questions and Answers
  • 1. 

    Can Index be created on temp tables?

    • A.

      Yes

    • B.

      No

    Correct Answer
    A. Yes
    Explanation
    Yes, an index can be created on temporary tables. Temporary tables are similar to regular tables but are used for storing temporary data within a session or a transaction. Creating indexes on temporary tables can improve the performance of queries that involve those tables, just like indexes on regular tables. However, it is important to note that the indexes on temporary tables are only available within the session or transaction where they were created and are automatically dropped when the session or transaction ends.

    Rate this question:

  • 2. 

    Which of the following command will be used for execute a stored procedure on a remote Adaptive Server?

    • A.

      Exec server_name.[database_name].[owner].procedure_name

    • B.

      Execute server_name.[database_name].[owner].procedure_name

    • C.

      Server_name.[database_name].[owner].procedure_name

    • D.

      All of above

    Correct Answer
    D. All of above
    Explanation
    All of the above options can be used to execute a stored procedure on a remote Adaptive Server. The first option "exec server_name.[database_name].[owner].procedure_name" uses the "exec" keyword to execute the stored procedure. The second option "execute server_name.[database_name].[owner].procedure_name" uses the "execute" keyword to execute the stored procedure. The third option "server_name.[database_name].[owner].procedure_name" directly specifies the server name, database name, owner, and procedure name without any keywords. Therefore, all of these options can be used to execute a stored procedure on a remote Adaptive Server.

    Rate this question:

  • 3. 

    When a create procedure command is successfully executed, the procedure’s name is stored in sysobjects, and its source text is stored in syscomments.

    • A.

      True

    • B.

      False

    Correct Answer
    A. True
    Explanation
    When a create procedure command is successfully executed, the procedure's name is stored in the sysobjects table, and its source text is stored in the syscomments table. This allows the database to keep track of all the procedures that have been created and their corresponding source code.

    Rate this question:

  • 4. 

    Which of the following datatype cannot be defined as NULL?

    • A.

      Char

    • B.

      Varchar

    • C.

      Bit

    • D.

      Datetime

    Correct Answer
    C. Bit
    Explanation
    The datatype "Bit" cannot be defined as NULL because it is a binary data type that can only have two possible values, 0 or 1. It does not have a third state for representing NULL values.

    Rate this question:

  • 5. 

    What is the Sybase function to remove spaces from a string?

    • A.

      REMOVE

    • B.

      RPAD and LPAD

    • C.

      RTRIM and LTRIM

    • D.

      None of Above

    Correct Answer
    C. RTRIM and LTRIM
    Explanation
    The Sybase functions RTRIM and LTRIM are used to remove spaces from a string. RTRIM removes any trailing spaces from the right side of the string, while LTRIM removes any leading spaces from the left side of the string. These functions are commonly used to clean up data by removing unnecessary spaces.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 20, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 10, 2011
    Quiz Created by
    Nbans

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.