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 7650
Q:

When was the wealth tax first introduced in India ?

A) 1948 B) 1957
C) 1976 D) 1991
 
Answer & Explanation Answer: B) 1957

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

27 7649
Q:

I do just enough work to get by.

A) Disagree B) Agree
C) Neutral D) Strongly Disagree
 
Answer & Explanation Answer: A) Disagree

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

2 7648
Q:

Germany signed the Armistice Treaty on ____ and World War I ended

A) January 19, 1918 B) May 30, 1918
C) November 11, 1918 D) February 15, 1918
 
Answer & Explanation Answer: C) November 11, 1918

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

20 7647
Q:

Lathyrism is caused by excess consumption of.......

A) Khesari Dal B) Mustard oil
C) Mushrooms D) Polished rice
 
Answer & Explanation Answer: A) Khesari Dal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

35 7646
Q:

Renowned Businessmen, Mr. Deepak Parekh is primarily associated in the __________ sector.

A) Telecom B) Aviation
C) Banking D) Insurance
 
Answer & Explanation Answer: C) Banking

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities
Exam Prep: Bank Exams

0 7645
Q:

The lead character in the film ' The Bandit Queen  ' has been played by

A) Shabana Azmi B) Rupa Gangulu
C) Seema Biswas D) Arundhati ray
 
Answer & Explanation Answer: C) Seema Biswas

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

10 7643
Q:

A disk and a sphere of same radius but different masses roll on two inclined planes of the same altitude and length. Which one of the two objects gets to the bottom of the plane first ?

A) Depends on their masses B) Sphere
C) Disk D) Both reach at the same time
 
Answer & Explanation Answer: B) Sphere

Explanation:

Time does not depend on mass, else

T  1 + k2R2 

 

  k2R2=> is least for 'sphere' and

 

hence least time is taken by sphere.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE

18 7640