logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }


  • Options
  • A. 1
  • B. 2
  • C. 3
  • D. 4

  • Correct Answer


  • Explanation

    Scanf returns number of items successfully read and not 1/0. Here 10 is given as input which should have been scanned successfully. So number of items read is 1.


  • Technology problems


    Search Results


    • 1. The keyword which indicates that a method can be accessed by only one thread at a time is

    • Options
    • A. Strictfp
    • B. Synchronized
    • C. New
    • D. None
    • Discuss
    • 2. What are the advantages of LINQ ?
    • Discuss
    • 3. What is LINQ ?
    • Discuss
    • 4. Difference between clustering and mirroring .
    • Discuss
    • 5. What is the difference between Notify URL and Return URL?
    • Discuss
    • 6. I don't want my class to be inherited by any other class. What should i do?
    • Discuss
    • 7. What is an error-first callback ?
    • Discuss
    • 8. Does not overriding hashcode() method has any performance implication ?
    • Discuss
    • 9. Which of the following is not a keyword?

    • Options
    • A. assert
    • B. pass
    • C. eval
    • D. nonlocal
    • Discuss
    • 10. Which of the following statements about inheritance is false?

    • Options
    • A. Inheritance allows you to minimize the amount of duplicate code in an application by sharing common code among several subclasses.
    • B. A subclass inherits all the members (fields, methods, and nested classes) from its superclass.
    • C. Through inheritance, a parent class is a more specialized form of the child class.
    • D. Inheritance allows you to reuse the fields and methods of the super class without having to write them yourself.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment