C Language Operators Quiz
10 Questions
0 Views

C Language Operators Quiz

Created by
@SprightlyVision

Podcast Beta

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the purpose of the 'putchar' function in C?

  • Scan input from the standard input stream
  • Write a string to the output stream
  • Read a character from the keyboard
  • Display a character on the screen (correct)
  • Which function is used to read a string from the keyboard in C?

  • printf
  • puts
  • scanf
  • gets (correct)
  • What is the purpose of the 'puts' function in C?

  • Read a character from the keyboard
  • Scan input from the standard input stream
  • Write a string to the output stream (correct)
  • Display a character on the screen
  • In C, which function is used for formatted input and output?

    <p>scanf</p> Signup and view all the answers

    What does the format specifier %f represent in C?

    <p>Decimal floating-point value</p> Signup and view all the answers

    Which function in C is used to print values to the console screen?

    <p>printf</p> Signup and view all the answers

    What does the '&' (address-of operator) do in scanf function in C?

    <p>Stores variable value in memory location</p> Signup and view all the answers

    'sprintf' stands for:

    <p>&quot;string printf&quot;</p> Signup and view all the answers

    '%s' format specifier in C is used for:

    <p>&quot;String/group of characters&quot;</p> Signup and view all the answers

    'puts' function in C is similar to which of the following functions?

    <p>gets</p> Signup and view all the answers

    More Like This

    Operators in C Language Quiz
    10 questions
    C Language Operators Quiz
    10 questions
    C Programming Expressions and Operators
    7 questions
    Use Quizgecko on...
    Browser
    Browser