Skip to main content
Chapter 15 of 29
Practice Quiz

Functions — Practice Quiz

NIOS · Class 12 · Computer Science

4 MCQs on Functions for NIOS Class 12 Computer Science: tap an answer to check it and see why. The full chapter test has 129 questions.

129 questions33 flashcards3 formulas & key relations5 concepts

Interactive on Super Tutor

Studying Functions? Get the full interactive chapter.

Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for practice quiz and more.

Free trial, no card needed.

Quick Quiz: Functions

0/4

Tap an answer to check it instantly. No sign-up needed for these 4.

1

What is the main() function in a C++ program?

2

If a C++ program contains only one function, which name must it have?

3

Which statement about a function is correct?

4

Which header file is required for getchar(), putchar(), gets(), and puts()?

129 Questions·
multiple choicemultiple correcttrue false

Sample Questions

1multiple choice
1 marks

Which function returns a single character from the keyboard and takes no parameter?

Show answer

getchar()

getchar() returns a single character from standard input and takes no parameter.

2multiple choice
1 marks

What does putchar() do?

Show answer

It sends one character to the output device and also returns that character

putchar() takes one character argument, sends it to the output device, and returns it as a result.

3multiple choice
1 marks

Which function gets a string terminated by a newline character from stdin?

Show answer

gets()

gets() reads a string from standard input until a newline is reached.

4multiple choice
1 marks

Which function outputs a string?

Show answer

puts()

puts() is the string output function and works with strings.

+125 more questions on Functions (NIOS Class 12 Computer Science)

Practise All

Frequently Asked Questions

What are the important topics in Functions for NIOS Class 12 Computer Science?
Key topics in Functions include Basics of Functions, Header Files and #include, Library Functions, Function Prototype and Arguments. Study these first, then practise questions on each for the NIOS Class 12 board exam.
How many practice questions are there for Functions?
There are 129 questions on Functions. Try the 4-question sample quiz on this page first; each answer shows an explanation when you tap it.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

For serious students

Get the full Functions chapter — start free.

Quizzes, flashcards, an AI doubt solver and a study plan for NIOS Class 12 Computer Science. Free to start, no card needed.