Natural 2006 Practice Exam - Database Concepts

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 Nimba
N
Nimba
Community Contributor
Quizzes Created: 2 | Total Attempts: 242
Questions: 10 | Attempts: 188

SettingsSettingsSettings
Database Quizzes & Trivia

Practice for the Software AG test


Questions and Answers
  • 1. 

    What is software ag's database called

    Explanation
    Software AG's database is called Adabas.

    Rate this question:

  • 2. 

    What describes the datatypes, lengths, and attributes of a file for a database (acronym)

    Explanation
    The acronym "fdt" stands for File Definition Table, which describes the datatypes, lengths, and attributes of a file for a database. The File Definition Table is used to define the structure and characteristics of a file, including the types of data it can store, the length of each field, and any additional attributes or constraints that apply to the file. This information is crucial for organizing and managing data within a database system.

    Rate this question:

  • 3. 

    What letter denotes a floating point datatype in adabas

    • A.

      A

    • B.

      G

    • C.

      B

    • D.

      P

    • E.

      U

    Correct Answer
    B. G
    Explanation
    A is alphanumeric, G is floating pt, B is binary, P is packed, U is Unpacked, and W is unicode

    Rate this question:

  • 4. 

    What is used as an inverted list to get records from a file? Note that the inverted list stores these; they are also known as keys.

    Correct Answer
    descriptor
    Explanation
    A descriptor is used as an inverted list to get records from a file. In this context, the descriptor serves as a key that helps retrieve specific records from the file. The inverted list, which is essentially a collection of these descriptors or keys, allows for efficient searching and retrieval of records based on specific criteria.

    Rate this question:

  • 5. 

    Which of the following below is the default form of compression in Adabas?

    • A.

      No blank compression (NB)

    • B.

      Null suppression (NU)

    • C.

      Not Null (NN)

    • D.

      Fixed fields

    • E.

      Trailing blanks are removed for strings and leading zeros are removed and data is packed for numbers

    Correct Answer
    E. Trailing blanks are removed for strings and leading zeros are removed and data is packed for numbers
    Explanation
    NB does means that fields are stored without stripping blanks. NU means that the database only stores one byte for null values. NN requires that the field has a value.

    Here is some info on field compression types:
    http://documentation.softwareag.com/adabas/ada614unw/admin/fdtrec.htm#fisanchor0

    Rate this question:

  • 6. 

    Mark which Natural commands can be used to retrieve records for the update command

    • A.

      Get

    • B.

      Read

    • C.

      Find

    • D.

      Histogram

    Correct Answer(s)
    A. Get
    B. Read
    C. Find
    Explanation
    The Natural 6.2.3 help only lists get, read, and find as commands to get records for update. Histogram only retrieves values from the inverted list.

    Rate this question:

  • 7. 

    DEFINE DATA LOCAL 1 WORK-VIEW VIEW OF WORK 2 ID-NO (N6) 2 NAME (A20) END-DEFINE ID := 1 NAME := "JOHN DOE" * What is the command to add this to the database?

    Correct Answer(s)
    STORE RECORD IN WORK-VIEW
    Explanation
    The command "STORE RECORD IN WORK-VIEW" is used to add the data, with the ID value of 1 and the NAME value of "JOHN DOE", to the WORK-VIEW database.

    Rate this question:

  • 8. 

    What type of database protocol holds off on locking until the record is modified

    • A.

      Pessimistic

    • B.

      Optimistic

    • C.

      Record holding

    • D.

      Transaction processing

    Correct Answer
    B. Optimistic
    Explanation
    Pessimistic locks the record as soon as it's accessed. Record holding is the act of locking a piece of the database, so it cannot be accessed or changed by other users.

    Rate this question:

  • 9. 

    You have to update only a few records in the database, but you have to read a lot of records. Which method would reduce the number of records held?DEFINE DATA LOCAL 1 WORK-VIEW VIEW OF WORK2 ID-NO2 NAME2 DEPT2 LOCATIONEND-DEFINERD. READ WORK-VIEW BY ID-NOIF DEPT = "HR" OR DEPT = "ACCOUNTING" * YOUR CODE HERELOCATION := "CA"UPDATE END TRANSACTIONEND-IFEND-READ

    • A.

      What's above is fine

    • B.

      Use the store record in work-view command first

    • C.

      Get work-view *isn (rd.)

    • D.

      Get work-view *isn

    Correct Answer
    C. Get work-view *isn (rd.)
    Explanation
    The store command is for adding new records. The problem with the above code is that it will lock every record read. Whenever a update command shows up, the record retrieved before it will be held. The get command is redundant since we are doing another adabas access. However, only the records retrieved with get will be locked. (rd.) refers to the label by the read command. This is so Natural knows where the ISN (internal sequence number) comes from.

    Rate this question:

  • 10. 

    What should you place in an error handling block for a program that edits an important database?

    • A.

      Backout transaction

    • B.

      End transaction

    • C.

      Terminate

    • D.

      Stop

    • E.

      Retry

    Correct Answer
    A. Backout transaction
    Explanation
    If this application fails it should abort the transaction by doing backout transaction. This undos whatever modifications were done since the last end transaction.

    terminate stops the current program. stop exits the natural environment. retry goes back to the code that caused the error.

    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
  • Aug 30, 2008
    Quiz Created by
    Nimba

Related Topics

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.