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

The Microsoft Access wildcards are ____ and ____ .

A) asterisk (*); percent sign (%)   B) percent sign (%); underscore (_)  
C) underscore(_); question mark (?) D) question mark (?); asterisk (*)
 
Answer & Explanation Answer: D) question mark (?); asterisk (*)

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems
Exam Prep: Bank Exams
Job Role: IT Trainer

81 7708
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 7707
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 7707
Q:

Two main measures for the efficiency of an algorithm are

A) Time and Space B) Complexity and Memory
C) Data and Space D) Memory and Processor
 
Answer & Explanation Answer: A) Time and Space

Explanation:

Two main measures for the efficiency of an algorithm are Time and Space.

Report Error

View Answer Report Error Discuss

26 7706
Q:

In plants, exchange of gases takes place through

A) Stomata B) Palisade tissue
C) Spongy tissue D) mid rib
 
Answer & Explanation Answer: A) Stomata

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

48 7703
Q:

Blue litmus paper is converted into red in solution of _______

A) Acid B) Base
C) Alkali D) Salt
 
Answer & Explanation Answer: A) Acid

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

12 7693
Q:

How many birthdays does the average person have?

Answer

Any person can have only 1 birthday i.e, the day he was born. And every year we celebrate it's anniversaries.

Report Error

View answer Workspace Report Error Discuss

9 7690