logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Database Comments

  • Question
  • If you are using C language to implement the heterogeneous linked list, what pointer type will you use?


  • Correct Answer
  • The heterogeneous linked list contains different data types in its nodes and we need a link, pointer to connect them It is not possible to use ordinary pointers for this So we go for void pointer Void pointer is capable of storing pointer to any type as it is a generic pointer type 

  • Tags: Database Administrator

    Database problems


    Search Results


    • 1. The time complexity of sequential search is

    • Options
    • A. O(n)
    • B. O(2n)
    • C. O(n^2)
    • D. None
    • Discuss
    • 2. Which among the following is the disadvantage of circular list?

    • Options
    • A. An info field that contains the information stored in the node
    • B. Can?t traverse the list backward
    • C. A pointer to the node is given we cannot delete the node
    • D. Both 2 and 3
    • Discuss
    • 3. Which among the following is the relationship constraints

    • Options
    • A. Cardinality ratio
    • B. Participation constraints
    • C. Both A and B
    • D. None of the above
    • Discuss
    • 4. The relationship where both the participating entities belong to same entity type is called

    • Options
    • A. Participation
    • B. Recursive
    • C. Standard
    • D. Normal
    • Discuss
    • 5. The no of entities participating in a relation is called

    • Options
    • A. Relation
    • B. Degree of relationship
    • C. Recursive relationship
    • D. None of the above
    • Discuss
    • 6. Does the minimum spanning tree of a graph give the shortest distance between any 2 specified nodes?

    • Options
    • A. Yes
    • B. No
    • C. May be Yes or No
    • D. None
    • Discuss
    • 7. Which of the following products implemented the CODASYL DBTG model?

    • Options
    • A. IDMS
    • B. DB2
    • C. dBase-II
    • D. R:base
    • Discuss
    • 8. Which of the following indicates the maximum number of entities that can be involved in a relationship?

    • Options
    • A. Minimum cardinality
    • B. Maximum cardinality
    • C. ERD
    • D. Greater Entity Count (GEC)
    • Discuss
    • 9. A reason for using an SQL view to hide columns is:

    • Options
    • A. to simplify a result only.
    • B. to prevent the display of sensitive data only.
    • C. to accomplish both of the above.
    • D. None of the above are reasons for using an SQL view.
    • Discuss
    • 10. Which of the following occurs when a transaction rereads data it has previously read and finds modification or deletions caused by a committed transaction?

    • Options
    • A. Nonrepeatable read
    • B. Phantom read
    • C. Dirty read
    • D. Consistent read
    • Discuss


    Comments

    There are no comments.

Enter a new Comment