Class 6 Exam  >  Class 6 Tests  >  Test: Standard Input & Output - Class 6 MCQ

Test: Standard Input & Output - Class 6 MCQ


Test Description

10 Questions MCQ Test - Test: Standard Input & Output

Test: Standard Input & Output for Class 6 2024 is part of Class 6 preparation. The Test: Standard Input & Output questions and answers have been prepared according to the Class 6 exam syllabus.The Test: Standard Input & Output MCQs are made for Class 6 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Standard Input & Output below.
Solutions of Test: Standard Input & Output questions in English are available as part of our course for Class 6 & Test: Standard Input & Output solutions in Hindi for Class 6 course. Download more important topics, notes, lectures and mock test series for Class 6 Exam by signing up for free. Attempt Test: Standard Input & Output | 10 questions in 10 minutes | Mock test for Class 6 preparation | Free important questions MCQ to study for Class 6 Exam | Download free PDF with solutions
Test: Standard Input & Output - Question 1

For a typical program, the input is taken using _________

Test: Standard Input & Output - Question 2

What is the default return-type of getchar()?

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Standard Input & Output - Question 3

What is the use of getchar()?

Test: Standard Input & Output - Question 4

What is the return value of putchar()?

Test: Standard Input & Output - Question 5

What will be the output of the following C code?

    #include <stdio.h>
    int main()
    {
        char c = '�';
        putchar(c);
    }

Test: Standard Input & Output - Question 6

What will be the output of the following C code if following commands are used to run (considering myfile exists)?

    gcc -otest test.c
    ./test < myfile
 
    #include <stdio.h>
    int main()
    {
        char c = 'd';
        putchar(c);
    }

Test: Standard Input & Output - Question 7

What will be the output of the following C code if following commands are used to run and if myfile does not exist?

    gcc -o test test.c
    ./test > myfile
 
    #include <stdio.h>
    int main(int argc, char **argv)
    {
        char c = 'd';
        putchar(c);
        printf(" %d\n", argc);
    }

Test: Standard Input & Output - Question 8

Which among the following is the odd one out?

Test: Standard Input & Output - Question 9

What does the following command line signify?

prog1|prog2

Test: Standard Input & Output - Question 10

What is the value of EOF?

Information about Test: Standard Input & Output Page
In this test you can find the Exam questions for Test: Standard Input & Output solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Standard Input & Output, EduRev gives you an ample number of Online tests for practice

Top Courses for Class 6

Download as PDF

Top Courses for Class 6