Database Administration Questions


Q:

Difference between Arraylist and Linked list?

Answer

ArrayList and LinkedList both implements List interface and maintains insertion order. Both are non synchronized classes.


 


But there are many differences between ArrayList and LinkedList classes that are given below.


 

ArrayList    V/s     LinkedList ::


 

1) ArrayList internally uses dynamic array to store the elements.


                   Whereas


LinkedList internally uses doubly linked list to store the elements.


 

2) Manipulation with ArrayList is slow because it internally uses array. If any element is removed from the array, all the bits are shifted in memory.


                   Whereas


Manipulation with LinkedList is faster than ArrayList because it uses doubly linked list so no bit shifting is required in memory.


 

3) ArrayList class can act as a list only because it implements List only.


                   Whereas


LinkedList class can act as a list and queue both because it implements List and Deque interfaces.


 

4) ArrayList is better for storing and accessing data.


                   Whereas


LinkedList is better for manipulating data.

Report Error

View answer Workspace Report Error Discuss

3 2526
Q:

Which of the following data structure is linear type?

A) Tree B) Binary Tree
C) Queue D) Graph
 
Answer & Explanation Answer: C) Queue

Explanation:

A data structure is a specialized format for organizing and storing data. General data structure types include the array, the file, the record, the table, the tree, and so on. Any data structure is designed to organize data to suit a specific purpose so that it can be accessed and worked with in appropriate ways.

 

Linear data structure: A linear data structure traverses the data elements sequentially, in which only one data element can directly be reached.

Ex: Arrays, Linked Lists, Stack, Queue, Any type of List all are linear.

 

Trees like Binary Tree, B Tree or B+ Tree are examples of non linear data structure.

Report Error

View Answer Report Error Discuss

5 2507
Q:

Recently deleted files are stored in

A) Taskbar B) My Computer
C) Recycle Bin D) Desktop
 
Answer & Explanation Answer: C) Recycle Bin

Explanation:

Deleted files are not permanently removed from the hard drive or the computers memory. Before they are permanently removed from the system they are stored in Recycle Bin. Recycle Bin is a folder or directory where deleted items are temporarily stored. It is also called as trash.

Report Error

View Answer Report Error Discuss

6 2502
Q:

What is the term used in tennis when the score is 40-40?

A) Ace B) Led
C) Deuce D) Tie
 
Answer & Explanation Answer: C) Deuce

Explanation:

When both sides have won the same number of points then: when each side has won one, or two, points, the score is described as "15-all" and "30-all" (or "15-up" and "30-up"), respectively.

However, if each player has won three points, the score is called as "deuce", not "40–all". From that point on in the game, whenever the score is tied, it is described as "deuce", regardless of how many points have been played.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank Clerk , Bank PO , Database Administration , IT Trainer

4 2502
Q:

Which of the following is a secondary storage device?

A) ALU B) Disc
C) Projector D) All of the above
 
Answer & Explanation Answer: B) Disc

Explanation:
Report Error

View Answer Report Error Discuss

3 2501
Q:

According to new federal data released, the US state whose economy has surpassed that of the UK to become the world’s fifth largest was

A) Massachusetts B) Florida
C) Hawaii D) California
 
Answer & Explanation Answer: D) California

Explanation:

The US state California's  economy has surpassed that of the UK to become the world’s fifth largest, according to new federal data released.

 

With a GDP of $2.7 trillion, California is now only behind the US, China, Japan and Germany.

Report Error

View Answer Report Error Discuss

2 2495
Q:

How fast do satellites orbit the earth?

A) 28,000 kmph B) 26,000 kmph
C) 17,500 kmph D) 22,500 kmph
 
Answer & Explanation Answer: A) 28,000 kmph

Explanation:

Satellites orbit the earth at a speed of 28,000 kmph.

Satellites that are further away actually travel slower. The International Space Station has a Low Earth Orbit, about 400 kilometers (250 miles) above the earth's surface. Objects orbiting at that altitude travel about 28,000 kilometers per hour (17,500 miles per hour).

Report Error

View Answer Report Error Discuss

5 2487
Q:

When should you stop at green and go at red?

Answer

While eating a watermelon, we all go along the red and stops at green.

Report Error

View answer Workspace Report Error Discuss

5 2485