logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is an error-first callback ?


  • Correct Answer
  • Error-first callbacks are used to pass errors and data as well You have to pass the error as the first parameter, and it has to be checked to see if something went wrong Additional arguments are used to pass data fsreadFile(filePath, function(err, data) { if (err) { // handle the error, the return is important here // so execution stops here return consolelog(err) } // use the data object consolelog(data) }) 

  • Tags: Analyst, Database Administrator, IT Trainer

    Technology problems


    Search Results


    • 1. I don't want my class to be inherited by any other class. What should i do?
    • Discuss
    • 2. main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 3. 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
    • 4. What are the advantages of LINQ ?
    • Discuss
    • 5. What is LINQ ?
    • Discuss
    • 6. Does not overriding hashcode() method has any performance implication ?
    • Discuss
    • 7. Which of the following is not a keyword?

    • Options
    • A. assert
    • B. pass
    • C. eval
    • D. nonlocal
    • Discuss
    • 8. 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
    • 9. What is latest iOS version?
    • Discuss
    • 10. What are the features is IOS 6?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment