IT Trainer 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 2741
Q:

Callous is the opposite of

A) emotionally hardened B) insensitive
C) sympathetic D) Unkind
 
Answer & Explanation Answer: C) sympathetic

Explanation:

A callous person is insensitive or emotionally hardened.

 

Hence, Callous is the opposite of Sympathetic, kind hearted, sensitive, nice,...

Report Error

View Answer Report Error Discuss

Filed Under: Alphabet Test
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 2739
Q:

The resolution of a printer is measured in

A) DPI B) Megabits
C) Hertz D) Inches
 
Answer & Explanation Answer: A) DPI

Explanation:

Dots per inch (DPI, or dpi) is a measure of spatial printing or video or image scanner dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

Report Error

View Answer Report Error Discuss

1 2735
Q:

What is the relationship between Resistivity and Conductivity?

Answer

Resistivity :


Resistivity is a measure of the resistance to the flow of electrons. 


Conductivity :


Conductivity is just the inverse of resistivity, σ = 1/ρ, where σ is conductivity and ρ is resistivity.


 


Example:


Think of a pipe and water, the bigger the pipe, the easier water can flow and thus the lower the resistance. 

Report Error

View answer Workspace Report Error Discuss

Subject: Physics Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 2732
Q:

What is the distance around a circle called

Answer

The distance around a circle is called as Circumference. And that in the case of square or rectangle it is called as Perimeter.

Report Error

View answer Workspace Report Error Discuss

4 2722
Q:

How can you avoid callback hells ?

Answer

There are lots of ways to solve the issue of callback hells:


1. Modularization: break callbacks into independent functions
2. Use a control flow library, like async
3. Use generators with Promises
4. Use async/await (note that it is only available in the latest v7 release and not in the LTS version)

Report Error

View answer Workspace Report Error Discuss

Subject: Java
Job Role: Analyst , IT Trainer

3 2706
Q:

How long is an IPv6 address?

A) 128 bytes B) 32 bits
C) 128 bits D) 32 bytes
 
Answer & Explanation Answer: C) 128 bits

Explanation:

IPv6 - Internet Protocol Version 6.

IPv6 addresses have a size of 128 bits.

Internet Protocol Version 6 [IPv6] is the successor to the Internet's first addressing infrastructure, Internet Protocol version 4 (IPv4).

In contrast to IPv4, which defined an IP address as a 32-bit value, IPv6 address have a size of 128 bits. 

Report Error

View Answer Report Error Discuss

8 2705
Q:

What travels around the world but stays in one spot?

Answer

Therefore the answer for What travels around the world but stays in one spot is STAMP or any other thing that acts as a stamp does.


Ex. the letter in the envelope etc...


 


Since, Several things have the possibility, but the word travel evokes that it would move. 

Report Error

View answer Workspace Report Error Discuss

4 2703