Engineering Hub Round 2(C Programming)

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Anshul Singh
A
Anshul Singh
Community Contributor
Quizzes Created: 1 | Total Attempts: 58
Questions: 10 | Attempts: 58

SettingsSettingsSettings
Engineering Hub Round 2(C Programming) - Quiz


THIS QUIZ CONTAINS ELEMENTARY AND SOME ADVANCED PROBLEMS RELATED TO C PROGRAMMING.


Questions and Answers
  • 1. 

    Predict the Output? 

    • A.

      CAT

    • B.

      CAT\0

    • C.

      C

    • D.

      COMPILER ERROR

    Correct Answer
    C. C
  • 2. 

    Which one do you like?

    • A.

      Getcc() 

    • B.

      Getch() 

    • C.

      Gets() 

    • D.

      Getstr() 

    Correct Answer
    B. Getch() 
    Explanation
    The correct answer is "getch()". This function is commonly used in C programming to read a single character from the keyboard without echoing it to the screen. It is often used in situations where user input needs to be obtained without any visual feedback. The other options, getcc(), gets(), and getstr(), are not standard functions in C programming.

    Rate this question:

  • 3. 

    Which one do you like?

    • A.

      ERROR

    • B.

      P

    • C.

      Nothing will be print

    • D.

      R

    Correct Answer
    A. ERROR
  • 4. 

    Which one do you like?

    • A.

      TickTack

    • B.

      Tick

    • C.

      Error

    • D.

      Tac

    Correct Answer
    B. Tick
    Explanation
    The given options are "TickTack," "Tick," "Error," and "Tac." The question asks for a preference, and the correct answer is "Tick." This implies that out of the given options, the person likes "Tick" the most.

    Rate this question:

  • 5. 

    Which one do you like?

    • A.

      Stack 

    • B.

      Heap

    • C.

      Text

    • D.

      Queue

    Correct Answer
    B. Heap
  • 6. 

    Which one do you like?

    • A.

      K

    • B.

      O

    • C.

      Error

    • D.

      C

    Correct Answer
    D. C
  • 7. 

    Which one do you like?

    • A.

      RUNTIME ERROR

    • B.

      4

    • C.

      0

    • D.

      Compiler Error

    Correct Answer
    A. RUNTIME ERROR
    Explanation
    The given correct answer is "RUNTIME ERROR". This suggests that the question is asking for a preference or personal choice, and "RUNTIME ERROR" is the option that the person likes or prefers. It is important to note that without more context or information, it is difficult to provide a more specific explanation.

    Rate this question:

  • 8. 

    Which one do you like?

    • A.

      CHARACTER THAT IS WRITTEN IN CASE OF SUCCESSFUL WRITE OPERATION

    • B.

      EOF/-1 ON ERROR

    • C.

      BOTH 

    • D.

      NONE OF THESE

    Correct Answer
    C. BOTH 
    Explanation
    The correct answer is "BOTH". This means that the character that is written in case of a successful write operation is returned, and in case of an error, EOF/-1 is returned. So, both options are applicable depending on the outcome of the write operation.

    Rate this question:

  • 9. 

    Which one do you like?

    • A.

      99 101

    • B.

      101 101

    • C.

      99 99

    • D.

      NONE OF THESE

    Correct Answer
    C. 99 99
    Explanation
    The answer "99 99" suggests that the person likes both options equally.

    Rate this question:

  • 10. 

    Which one do you like?

    • A.

      Typedef struct

    • B.

      Struct

    • C.

      Structure

    • D.

      NONE OF THESE

    Correct Answer
    B. Struct
    Explanation
    The correct answer is "struct" because it is a keyword in programming used to define a structure. A structure is a user-defined data type that allows us to combine different types of data under a single name. In this context, "typedef" is not a valid option as it is used to create an alias for existing data types, "structure" is misspelled, and "NONE OF THESE" is not a valid keyword.

    Rate this question:

Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.