Searching for "buffer"

Q:

What is the name of a memory buffer used to accommodate a speed differential ?

A) Cache B) Stack Pointer
C) Accumulator D) DISC
 
Answer & Explanation Answer: A) Cache

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

Q:

The main buffer system of the human blood is

A) H2CO3 B) H2SO4
C) CO2 D) O3
 
Answer & Explanation Answer: A) H2CO3

Explanation:

the_main_buffer_system_of_the_human_blood_is1556690852.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

Q:

Typically not referred to as a buffer type in critical chain project management is ______.

A) Free Buffer B) Resource Buffer
C) Project Buffer D) Feeding Buffer
 
Answer & Explanation Answer: A) Free Buffer

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

Q:

In the following pieces of code, B and D will compile without any error. True or false ?

A: StringBuffer sb1 = "abcd";

B: Boolean b = new Boolean("abcd");

C: byte b = 255;

D: int x = 0x1234;

E: float fl = 1.2;

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

The code segments B and D will compile without any error. A is not a valid way to construct a StringBuffer, you need to create a StringBuffer object using "new". B is a valid construction of a Boolean (any string other than "true" or "false" to the Boolean constructor will result in a Boolean with a value of "false"). C will fail to compile because the valid range for a byte is -128 to +127 (i.e., 8 bits, signed). D is correct, 0x1234 is the hexadecimal representation in java. E fails to compile because the compiler interprets 1.2 as a double being assigned to a float (down-casting), which is not valid. You either need an explicit cast, as in "(float)1.2" or "1.2f", to indicate a float.

Report Error

View Answer Workspace Report Error Discuss

Q:

 What is the string contained in s after following lines of code?

StringBuffer s = new StringBuffer(“Hello”); s.deleteCharAt(0);  ?

A) llo B) Hllo
C) ello D) H
 
Answer & Explanation Answer: C) ello

Explanation:

deleteCharAt() method deletes the character at the specified index location and returns the resulting StringBuffer object.

So after deleting the character at 0 ie 'H', the string returns 'ello' as the output.

Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Analyst , IT Trainer

Q:

Which of the following are incorrect form of StringBuffer class constructor  ?

A) StringBuffer(int size , String str) B) StringBuffer(int size)
C) StringBuffer(String str) D) StringBuffer()
 
Answer & Explanation Answer: A) StringBuffer(int size , String str)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Java
Job Role: Database Administration , IT Trainer

Q:

What is the purpose of Buffer class in Node.js?

Answer

Buffer class could be a global class and may be accessed in application without importing buffer module. A Buffercould be a quite an array of integers and corresponds to a raw memory allocation outside the V8 heap. A Buffer can not be resized.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology
Job Role: Software Architect

Q:

The prices at which the government purchases food grains for maintaining the Public Distribution system (PDS) and for building up buffer - stock is known as :

A) minimum support prices B) procurement prices
C) issue prices D) ceiling prices
 
Answer & Explanation Answer: B) procurement prices

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy