C Language Operators Quiz
10 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

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

  • Read a string from the keyboard
  • Display a string on the screen
  • Writes output to the standard output stream (correct)
  • Scans input according to the format provided
  • Which function is used to display a string on the screen in C language?

  • Scanf
  • Printf
  • Gets
  • Puts (correct)
  • What does the 'scanf' function in C language do?

  • Writes output to the standard output stream
  • Reads or takes input from the keyboard by the user (correct)
  • Scans input according to the format provided
  • Displays a string on the screen
  • Which format specifier is used for decimal floating-point values in C language?

    <p>%f</p> Signup and view all the answers

    What is the purpose of the 'sprintf' function in C language?

    <p>Formats strings into an array</p> Signup and view all the answers

    Which function is used to read a single string from the keyboard in C language?

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

    What data type does the '%c' format specifier represent in C language?

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

    Which function is used to read input from the standard input stream in C language?

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

    '%s' format specifier in C language is used for which type of data?

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

    What does the 'puts' function do in C language?

    <p>Displays a string on screen or console</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser