[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

# Input / Output Questions

NA
SHSTTON
28
Solv. Corr.
185
Solv. In. Corr.
213
Attempted
2 M:7 S
Avg. Time

1 / 6

Choose the correct option.

fputs function is used to

AWrite characters to a file

BTakes 2 parameters

CReturns a character

DRequires a file pointer

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
131
Solv. Corr.
63
Solv. In. Corr.
194
Attempted
0 M:0 S
Avg. Time

2 / 6

Choose the correct option.

The function fprintf is used in a program

Awhen too many printf calls have been already used in the program

Bin place of printf, since printf uses more memory

Cwhen the output is to be printed on to a file

Dwhen the type of the variables to be printed are not known apriori

Explanation:

Here is no explanation for this answer

Workspace

NA
SHSTTON
102
Solv. Corr.
100
Solv. In. Corr.
202
Attempted
0 M:0 S
Avg. Time

3 / 6

What is the following C Program doing?
#include <stdio.h>
void main ()
{
char line [80];
gets (line);
puts (line);
}

Aprints horizontal straight lines on screens

Bprints 80 vertical lines on screen

Creads in a line of 80 characters

Dreads and prints lines composed of characters

Explanation:

In line 3, we are declaring a character array 'line' of exactly 80 bytes. In the next line, 'gets' is used to read a line of text from standard input device(stdin), and in the next line 'puts' is used to print the string or line of text. So the coreect option is D.

Workspace

NA
SHSTTON
67
Solv. Corr.
135
Solv. In. Corr.
202
Attempted
0 M:0 S
Avg. Time

4 / 6

Choose the correct option.

if i,j,k are integers, the scanf function to enter i,j,k such that i is decimal,j is octal and k is hexadecimal would be

Ascanf("%x %x %8x",i,j,k)

Bscanf("%d %o %x", i,j,k)

Cscanf("%d %o %x",&i, &j, &k)

Dscanf("%d %8d %16d", &i, &j, &k)

Explanation:

Following are the format specifiers for the above cases-

1. %d- to scan an integer value.

2. %o- to scan an octal value.

3. %x- to scan value in hexadecimal format.

Workspace

NA
SHSTTON
92
Solv. Corr.
93
Solv. In. Corr.
185
Attempted
0 M:0 S
Avg. Time

5 / 6

What would be the output of the following C program if input to the program is 'e'?
#include <stdio.h>
void main ()
{
char lower, upper;
lower = getchar();
upper= toupper (lower);
putchar (upper);
}

A53

Be

CE

DNothing

Explanation:

As lower=getchar(), and the input is 'e', so lower will contain 'e'. In the next line 'e' will get converted to its upper case i.e, upper will contain 'E'. In the next line 'E' will get printed, so the correct option is option C.

Workspace

NA
SHSTTON
115
Solv. Corr.
79
Solv. In. Corr.
194
Attempted
0 M:0 S
Avg. Time

6 / 6

float x, y, z;
scanf ("%f %f", &x, &y);

If input stream contains "4.2 3 2.3 ..."
What will x and y contain after scanf?

A4.2, 3.0

B4.2, 2.3

C4.2 2.0

DNone of the above

Explanation:

Here is no explanation for this answer

Workspace

## C Programming Input / Output Questions and Answers pdf

At C Programming topic Input / Output, you will get multiple online quiz difficulty wise, which will have a total of 6 quizzes, categorized as easy, medium, and moderate level. While preparing for any Input / Output, take all the list quiz and check your preparation level for that topic. Each quiz have 10 different question, which needs to be answered in 20 min., all the listed quiz here is free, however, you will get only one chance for each quiz to attempt(Take Quiz seriously), so it is always recommended to take one quiz in each section before you start solving Input / Output MCQs practice question, and one after solving all the question of the respective level, you can refer back your Input / Output quiz result any time or you can download it as pdf for reference.

## C Programming Input / Output Customize Online Mock Test

This is own type of mock test, where At this C Programming Input / Output MCQs mock test section, you will able to attempt only the questions related to Input / Output, in that question will be a different level, important, and all the questions will be part of some of the mock tests across Q4interview FREE Mock test. You need to choose the topic as Input / Output, and click on Double click to generate your customize mock test. While attempting the mock test you need to choose any of the one options out of given option. It is recommended to go through the direction given along with each question, as these questions will be randomly and so that same direction will not be applicable across the entire test. Once you submit your mock test, the result will be generated for Input / Output Customize mock test, where your performance point points will be highlighted. Q4interview analysis every single point which helps you to improve your topic understanding and help you to know your type of mistakes and way to improve Input / Output questions, by providing the same type of practice questions from practice exercise. The best part of this Input / Output, all these mock tests listed here are free and you can take as Many time, as many you want. When you continue to give Input / Output Customize Online Mock Test here regularly, then you will understand how much you have developed your accuracy on a topic, after that you will be able to decide how much attention you need to focus on. Your continued practice will increase your confidence, speed and thinking ability intensely, the Input / Output Customize topic on which you will practice more will beneficial for you in future during campus placement.

## C Programming Input / Output Quiz Online Test

The details of the C Programming Input / Output quiz are as follows. There are 10 questions for you. You have to answer them in 20 minutes. Within 20 minutes you have to see the errors in the sentences given as a question. Four options are also given to you, and you have to choose your opinion. You must be confident in your answer that the choices are difficult. Therefore, below we provide you with some information about C Programming Input / Output that you see and keep them in mind while answering questions.

## C Programming Input / Output MCQs Practice Questions with Answer

On this Input / Output section of page you will find the easiest quickest ways to solve a question, formulas, shortcuts and tips and tricks to solve various easiest methods to solve Input / Output Question Quickly. It contains all the C Programming topic Input / Output questions which are common in any of the preliminary exams of any company. The solution is provided along with the questions. The practice of these questions is a must as they are easy as well as scoring and asked in all the exams They will confirm the selection if all the questions attempted wisely with little practice. It is recommanded to Take Mock test based on C Programming topic and Input / Output topic based quiz.

## C Programming Input / Output solved examples question

You can get here fully solved Input / Output examples with a detailed answer and description. You can solve Input / Output problems with solutions, the questions by companies wise by filtering the questions, additionally, you can check what type of questions are being asked in IT companies Written Round from Input / Output. Input / Output became one of the most important sections in the entire competitive exams, Companies Campus, and entrance online test. Go through Input / Output Examples, Input / Output sample questions. You can Evaluate your level of preparation in Input / Output by Taking the Q4Interivew Input / Output Online Mock Test based on most important questions. All the Input / Output practice questions given here along with answers and explanations are absolutely free, you can take any number of time any mock Test.

## Why C Programming Input / Output?

In this practice section, you can practice C Programming Questions based on "Input / Output" and improve your skills in order to face the interview, competitive examination, IT companies Written exam, and various other entrance tests (CAT, GATE, GRE, MAT, Bank Exam, Railway Exam etc.) with full confidence.

## Where can I get C Programming Input / Output questions and answers with explanation?

Q4Interview provides you lots of fully solved C Programming (Input / Output) questions and answers with Explanation. Solved examples with detailed answer description, explanation are given and it would be easy to understand. You can download C Programming Input / Output quiz questions with answers as PDF files and eBooks.

## Where can I get C Programming Input / Output Interview Questions and Answers (objective type, multiple-choice, quiz, solved examples)?

Here you can find objective type C Programming Input / Output questions and answers for interview and entrance examination. Multiple choice and true or false type questions are also provided.