Questions

Q:

Point out the error in the following program.

main()

{

    char mybuf[] = "Zanzibar" ;

    char yourbuf[] = " Zienckewiz";

    char * const ptr = mybuf;

     *ptr = 'a';

     ptr = yourbuf;

}

Answer

ptr pointer is constant. In ptr = yourbuf the program is trying to modify it, hence an error.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

5 7321
Q:

Which Indian Community celebrates the Khordad sal

A) Sikh B) Jain
C) Hindu D) Parsi
 
Answer & Explanation Answer: D) Parsi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture

124 7320
Q:

‘Kala Namak rice’ or Buddha Rice is associated with which Indian state?

 

A) Andhra Pradesh B) Bihar
C) Uttar Pradesh D) Telangana
 
Answer & Explanation Answer: C) Uttar Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

2 7319
Q:

When development in economy takes place, the share of tertiary sector in National Income

A) first falls and the rises B) first rises and then falls
C) keeps on increasing D) remains constant
 
Answer & Explanation Answer: C) keeps on increasing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

4 7319
Q:

Which new England colony was established by the separatists?

 

A) Bermuda B) Akrotiri
C) Plymouth D) Cayman
 
Answer & Explanation Answer: C) Plymouth

Explanation:

In the year 1620, Plymouth colony was established by separatists.

Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

0 7318
Q:

What is math.floor(3.6)?

A) 6 B) 3
C) 3.5 D) 0.6
 
Answer & Explanation Answer: B) 3

Explanation:

The Math.floor() function in JavaScript is used to round off the number passed as parameter to its nearest integer in Downward direction of rounding i.g towards the lesser value.

 

Hence, math.floor(3.6) = 3.

Report Error

View Answer Report Error Discuss

5 7317
Q:

Which of the following States is a member of the ' Seven Sisters '

A) West Bengal B) Orissa
C) Tripura D) Bihar
 
Answer & Explanation Answer: C) Tripura

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

8 7317
Q:

Boost and Crocin brands are owned by which company?

A) GalaxoSmithKline B) Pfizer
C) Henz D) ParasPharma
 
Answer & Explanation Answer: A) GalaxoSmithKline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

21 7313