Explained C Aptitude Interview Questions Series-3

Here are Third batch of frequently asked C aptitude questions & these questions have proper answers given so mnc team suggest you should go over these Apptitude questions before your job interview


If u haven`t read C aptitude questions#1 & #2 in this excellent series then please do so before continuing


Q How can I implement a variable field width with printf? That is, instead of %8d, I want the width to be specified at run time.


A: printf("%*d", width, x) will do just what you want.


Q How can I print numbers with commas separating the thousands? What about currency formatted numbers?


A: The functions in begin to provide some support for these operations, but there is no standard routine for doing either task. (The only thing printf() does in response to a custom locale setting is to change its decimal-point character.)


Q What is wrong with this code?


char c;


while((c = getchar()) != EOF) ...


A: For one thing, the variable to hold getchar's return value must be an int. getchar() can return all possible character values, as well as EOF. By squeezing getchar's return value into a char, either a normal character might be misinterpreted as EOF, or the EOF might be altered (particularly if type char is unsigned) & so never seen.


Q Why does the code


while(!feof(infp)) {


fgets(buf, MAXLINE, infp);


fputs(buf, outfp);


}


copy the last line twice?


A: In C, end-of-file is only indicated *after* an input routine has tried to read, & failed. (In other words, C's I/O is not like Pascal's.) Usually, you should just check the return value of the input routine (in this case, fgets() will return NULL on end- of-file); often, you don't need to use feof() at all.


Q My program's prompts & intermediate output don't always show up on the screen, especially when I pipe the output through another program.


A: It's best to use an explicit fflush(stdout) whenever output should definitely be visible (& especially if the text does not end with \n). a lot of mechanisms attempt to perform the fflush() for you, at the "right time," but they tend to apply only when stdout is an interactive terminal.


Q How can I print a '%' character in a printf format string? I tried \%, but it didn't work.


A: Simply double the percent sign: %% .


\% can't work, because the backslash \ is the *compiler's* escape character, while here our problem is that the % is essentially printf's escape character.


Q Someone told me it was wrong to use %lf with printf(). How can printf() use %f for type double, if scanf() requires %lf?


A: It's true that printf's %f specifier works with both float & double arguments. Due to the "default argument promotions" (which apply in variable-length argument lists such as printf's, whether or not prototypes are in scope), values of type float are promoted to double, & printf() therefore sees only doubles. (printf() does accept %Lf, for long double.)


Q What printf format should I use for a typedef like size_t when I don't know whether it's long or some other type?


A: Use a cast to convert the value to a known, conservatively- sized type, then use the printf format matching that type. For example, to print the size of a type, you might use


printf("%lu", (unsigned long)sizeof(thetype));


Q Why doesn't the call scanf("%d", i) work?


A: The arguments you pass to scanf() must always be pointers. To fix the fragment above, change it to scanf("%d", &i) .


+Some Great DBMS aptitude Questions


+Exhaustive collection of Operating System Concepts


+All the C apptitude questions You want

Remember a lotta these questions with detailed explanation can be found At this Website


READ ANSWER and EXPLANATION

Latest C aptitude DBMS questions and Quantitative aptitude Questions


Here are some frequently asked C aptitude questions & these questions have proper answers given so mnc team suggest you should go over these Apptitude questions before your job job interview.


 


Q How do you decide that integer type to use?


Q What should the 64-bit type on a machine that can support it?


Q What is the best way to declare & define global variables & functions?


Q What does extern mean in a function declaration?


And Many more Such Questions are available On our Excellent C Aptitude Questions Site


 


We have Featured several C aptitude questions in march & quntitative questions also so do check them out.


Remember a lotta these questions with detailed explanation can be found At this Website


READ ANSWER and EXPLANATION

Excellent Sql Aptitude questions


Sql Apptitude Very neat collection

Q. What will be the output of the following query? SELECT  DECODE(TRANSLATE('A','1234567890','1111111111'), '1','YES', 'NO' );
Answer :    NO.
Explanation : 
The query checks whether a given string is a numerical digit. 


 Q. What command is used to create a table by copying the structure of another table?  Q. What will be the output of the following query? 
 Q. What does the following query do?
Q. What is the difference between TRUNCATE & DELETE commands? For answers Go Here

For more Sql Questions we suggest you come back to the original site(mncplacement)& check out more sql questions asked in 2019/2020.

More C/C++ Aptitude Questions

More Excellent SQL QUESTIONS collection



Remember a lotta these questions with detailed explanation can be found At this Website


READ ANSWER and EXPLANATION

Placement preparation: C aptitude questions


Great C Aptitude Questions for placement preparations



Q Does C have boolean variable type?



Q Where may variables be defined in C?



Q What does the typedef keyword do?



Q What is the difference between constants defined through #define & the constant keyword?



Q What are Trigraph characters?


Q How are floating point numbers stored? Whats the IEEE format?



Q. When should the register modifier be used?



Q. When should a type cast be used?



Q. Can structures be assigned to variables & passed to & from functions?


Q What is the difference between the declaration & the definition of a variable?.


Q Do Global variables start out as zero?




  • Q To what does the term storage class refer? What are auto, static, extern, volatile, const classes?

GET THE ANSWERS to these APTITUDE questions HERE
Remember a lotta these questions with detailed explanation can be found At this Website


READ ANSWER and EXPLANATION

Here`s an sql aptitude questions collection ( quite easy)


Here Are More Sql aptitude questions



as we were asked by several of our readers for Sql related questions for aptitude preparations & sql questions are asked a lot in placement papers so if u have any requests email us (kusumm14@yahoo.com)



Q. What is the use of the DROP option in the ALTER TABLE comm&?


It is used to drop constraints specified on the table.



Q. What is the value of ‘comm’ & ‘sal’ after executing the following query if the initial


value of ‘sal’ is 10000?


UPDATE EMP SET SAL = SAL + 1000, COMM = SAL*0.1;


sal = 11000, comm = 1000 .


Q. Why does the following comm& give a compilation error?


DROP TABLE &TABLE_NAME;


Variable names should start with an alphabet. Here the table name starts with an '&' symbol.



Q. What is the advantage of specifying WITH GRANT OPTION in the GRANT comm& in sql?


The privilege receiver can further grant the privileges he/she has obtained from the owner to any other user.



Q. What is the use of DESC in SQL?


Answer :


DESC has two purposes. It is used to describe a schema as well as to retrieve rows from table in descending order.


Explanation :


The query SELECT * FROM EMP ORDER BY ENAME DESC will display the output sorted on ENAME in descending order.



Q. What is the use of CASCADE CONSTRAINTS?


When this clause is used with the DROP comm&, a parent table can be dropped even when a child table exists.



 


READ ANSWER and EXPLANATION

ACCENTURE Interview Employment Questions Pattern

Updated for 2026
The current version of this guide — verified for 2026 placement season — is on PapersAdda. Read the latest →
Accenture test paper for interview



The recruitment process (four round) is quite a long. It goes as follows:--



I. Written Test 1 Hrs

II. GD 15 Mins.

III. Technical 20-30 Mins.

IV. HR 10 Mins.



Total students appear for Written =190

For GD =116

For Technical=79

For HR=50



Final Selection = 33 of which six from MCA.



( I ) WRITTEN TEST for interview



Written Test Consist of 55 question to be answer in 1 Hrs. & a short ESSAY on a given topic.



Written Test consist of Three Section:

1) Verbal 20 Questions

2) Aptitude 20 Questions

3) Analytical 15 Questions



1) VERBAL SECTION for interview



It consist of question like

fill in the blanks using given words,

fill in the blanks using given ARTICLE,

2-3 question from synonyms



Two passage were given one on SQL language & another on DBMS.

5 - Question from each passage.

Its quite a easy one.



2) APTITUDE



3 - question like There are 2000 member on a club, 800 likes swimming, 1300 like golf, 500 like swimming & golf then how many like onlu swimming, golf?



3 question on set theory like there are 50 people, 20 like jukebox+game, 10 like game+book , 35 like book+jukebox. Than how many like only book, jukebox.







question on percentage like "if A got 20% marks & failed by 10 marks & B got 42% & passed by 1 marks, then what is the pass %, maximum marks."



if Ram's rank is 14th, total student 46, what will be his rank backward.



3) ANALYTICAL for interview

easy one 5 - question on decision making

3 - question on selecting the look alike



125.23622 125.23522 125.23522 125.25322

568.352 568.352 568.532 568.352



question on coding on binay form "If * represent 0 & $ represent 1 than what will be the value of "

6^4 / 6^6 / 28

2^3-6+12+95/15

[15/4+2*8]



qusestion like ( + rep -, / rep - ,* rep /, - rep + ) than what will be the value of 15/3+5*2/6

( - rep /, * rep - ,/ rep +, + rep * ) than what will be the value of 23+8-55/2*12

( * rep /, + rep - ,/rep *, - rep + ) than what will be the value of 15*2/5+8-6

( / rep *, * rep /, - rep +, + rep -) than what will be the value of 20*2/5+6-8

For ESSAY :

They have given the topic "SHOULD KOLKATA BE MADE IT HUB OF INDIA?"

This essay is just to check your writing ability.



( II ) GROUP DISCUSSION by interviewer

GD Topics were

a) Should Alcohol be banned or not?

b) IT is enabler (BOON) or not ? (my topic)

c) Is Salman Khan's Bail is Justifiable?

d) Communism & Economy Reform.

e) CPM's Role in Privatization.

f) Foreign TV channels should be banned in INDIA or not?

There are approx. of 12- 15 members in each group & particularly they check you Communication skills, Leadership Qualities etc.Basic funda is to say as much as you know about the topic but don't bluff to much, it may the resaon for your elimination.





( III ) TECHNICAL

Tell me about yourself ?

What is a ROM, what is contains ?

What SDLC model ?

What is advantage of using pointer?

What is Virtual functios?

What are the diffeernt management techniques?

What are the difference between Structure & Class?

What is OSI & TCP/IP layers, differentiate them?

What is indexing?

What is Normalisation? 1NF, 2NF, 3NF?

What is virtual pointer?

Have you done any project so far? (Please mention project only in you have done it properly)

( IV ) HR SECTION

Tell me about yourself?

Why would like to join ACCENTURE?(interviewer)

How can you help us?

Relocation for you is possible or not?

You are from (Physics/math/Chem) background then why did you join MCA?

Do you have any gap in your studies if yes state reason?

Gudluck for ur job Employment

Note: This article is from the original mncplacement archive (2008+). For the 2026-current version with verified offers, salary data, and exam patterns, visit the updated guide on PapersAdda.


READ ANSWER and EXPLANATION

2008 Latest Accenture Placement test pattern

Updated for 2026
The current version of this guide — verified for 2026 placement season — is on PapersAdda. Read the latest →
Latest Accenture test pattern for interview



step1: (i)aptitute test (quant+verbal+reasoning)

time limit-1hr 10mins,no sectional cutoffs, no negative marking, difficulty level-easy, overall cutoff-high, sets of papers distributed-two.

important topics covered- venn diagrams, symbol based problems, direction problems, word meanings/opposites, prepositions, articles, comprehensions.

(ii)essay

time limit-15mins, word limit-none, topic- current affairs.

step 2: group discussions.

time limit- 15mins max. , importance level- very high, topics- current affairs.

step 3: hr interview

type- easy but tricky. be careful. memorise every small detail about d company said in ppt.

step 4: technical interview

type- easy, a little bit tricky, try to answer smartly, topic-anything under the sun, not jst c & c++.

tips--1. carry a xerox copy of 5th sem/7th sem (as applicable) mark cardt/provitional marks sheet with u. its a must.

2. b very thorough regarding company history, profits, revenue etc.

3. dress smartly, they want smart engineers.be confident.

4. improve upon ur english, fluency in english is a must in accenture interview.

5. b positive, b urself, do not bluff, do not lie, they want want honest engineers,if u r caught lying u ll b shown d door instantly.

Gudluck for ur job Employment

Note: This article is from the original mncplacement archive (2008+). For the 2026-current version with verified offers, salary data, and exam patterns, visit the updated guide on PapersAdda.


READ ANSWER and EXPLANATION

ACCENTURE Placement Paper January 2006

Updated for 2026
The current version of this guide — verified for 2026 placement season — is on PapersAdda. Read the latest →
Accenture Interview Test paper


For Aptitude R.S Agarwal is enough to crack this.For technical u have to grill the "Test ur C & C++ Skill" books.Most of the questions r repeated from prev. question paper.

In C++,Mostly from Polymorphism,inheritence,virtual functions,constructors.

In C,Mostly from scope of variable,pointers,structures.Its quite easy when compare to C++.


Go on. Be a Tiger.



HR Interview:

Its cool & relax round.

1.First they will ask u to intro urself.

2.Ur strength & weakness.Be clear abt this.

3.Ur acheivements

4.They are very particular abt the GAPS in our studies.

5.Ur Hobbies.

6.Why u choose accenture & tell abt it.

7.Willing to relocate.(Say Yes &.ready to work anywhere for accenture)




Technical Interview for job:

1.Abt Ur project.(u will be grilled by them)

2.Be confidence.(They will check ur temper by asking some questions)

3.Abt software development life cycle

4.Abt ur interest area in computer field

5.Abt memory management in Operating System.

6.Abt Unix basic commands

7.Abt doubly linked list

8.Fibonacci series & palindrome program in C.

9.Abt Gates(Be prepare on Digital Circuit Logic Design)

10.Abt complier design(phases)

11.Abt TCP&IP & OSI Model.

12.Abt OOPS concepts.


By god grace I cleared all this & i got the Offer letter. So U people can clear this easily. Be Confident & Be Humble. Every One will have a day. So don't Worry abt ur past.

Gudluck for ur job Employment




Note: This article is from the original mncplacement archive (2008+). For the 2026-current version with verified offers, salary data, and exam patterns, visit the updated guide on PapersAdda.


READ ANSWER and EXPLANATION

LATEST 2008 january ACCENTURE Employment Questions paper 2

Accenture Test paper 3

1)question papers will repete

2)Be careful in HR Round(its an elimination round)
2.1)dont lie in hr,becoz to cover that lie you need to say bigger lies & u will be trapped somewhere
2.2)always be a keen listner with a pleasent face(if u are NOT atleast act like that)
2.3)finally HR will say "Do you have any Questions??". its very important because that question reveals your attitude & knowledge about the industry you are going to work.Ask some startling, unexpected questions!!!

3)Technical round
If you are from Computer science prepare well in
3.1) DBMS(normalization,1NF,2NF,3NF,BCNF,4NF,5NF with examples,Database architecture,schema architecture,DDL,DML,role of s/m administrator,concurrency control(locking,timestamps))
3.2) Datastructures
sorting algorithms(buble,selection,insertion,quick,shell,heap & may be radix sort,be prepared to write those C or C++ code)
hashing functions etc
3.3) C (link list implimentation,tree,stack,Queue etc,also expect some simple string manipulation programs)
3.4)Operating system
Memory management(paging,segmentation,virtual memory,buddy systems,page tables,Process sheduling algorithms,page replacement algorithms),deadlock,semaphore,monotors,mutex etc

Gudluck for ur job Employment


READ ANSWER and EXPLANATION

LATEST 2007 December ACCENTURE Employment Questions

Accenture Test paper 2


There was three different phases for job inteview test

(1) written exam

(2) HR

(3) techniqual interview





fnd there were 4 section in the written exam

(i) english section [15 questions]

(ii) aptitude [30 questions]

(iii) lang "c" [15 quests]

(iv) lang c++ [15 quests]



english sections -----------

question given here are just based on my memory, & may not be exactly

same .so just get the idea of the questions---



(i)_ university named with cusat is situated there.[ans-a]

(ii) we study in _university,rather in school.[ans-a]

(iii) mr riju works _ the supervision of mr ram.[ans-under]



like that 10 questions wr based on article & preposition.(2 synonyms & antonyms)



5 questions wr based on the comprehension.. that was not very hard. but i'll prefer to do it at last. cuz it was too much long, that waz time taking. so i solved it at last.



(2) this section included 30 questions from aptitude. those wr damn easy. & u will solve it. in just 30 mins may be less than that.



i think u can solve them within 25 mins.they were simple .

most of the problems wr frm ----

time & work

clock

ratio & proportion

profit & loss

races & condition

time & distance

mixture

that's all. just try to solve it as quickly as possible. but do it carefully.



I solved all those questions except four. Try to revise

the R.S.Agarwal book (aptitude).



A man is st&ing on the platform. A train passes by him in a spped of 5km/hr & the length of the train is 100m. Calculate the time taken by the train to

cross the man.



Between 1 & 2, when the arms of the clock will coincide (hr & min arms).

(Formula: [(11*min)/2 - (30*hr)=0] ---> this is the eqn. If u will input hr, u will get the min as answer.



Data may be different....am just giving the pattern.



(3) 3rd sections was based on c. all were based on pointers. so i'll suggest u

to solve test yr c skill. if possible then solve the "exploring c" also.



this was also an easy section. all the 15 questions wr easy but they wr taking my time. so i was solving them fastly without caring whether they r correct or

wrong.but i tried all those question except 2 questions.



(4)c++ sections. actually in my college in computer science c++ was not in the syllabus. so i have been studying it since i got the news about accenture.



questions wr based on ----

virtual function

inheritence



alot of questions wr based on "this" operator.They used to make classes &

objects & inserted "this" pointer along with "&" & "||" operators. So make

ur concept on these things very strong.they wr too much long. i could hardly

read all the questions.



this section was damn tough. i could hardly solve 3 questions correctly. but

those were correct. & abt rest i just ticked "c" option.it was really short

of time there.



i will suggest u to solve it at last. but atleast try to solve 3 or 4 questions & if u want to do better in this section then go for test yr C++ skills & go through correctly bcuz i heard some of my fnds did't get selected cuz they left this sections untouched.



one more important thing---there is individual cutoff in each section of written

test.so be careful. do not let any section untouched.



one more thing, never hesitate to tick all the questions.There waz no negative marking. so even if u r not very sure, u can make guesses.



HR round:



fnds this was very crucial one.they will ask u a lot of questions abt yr family

background,

career objective,

hobbies,

weaknesses



etc. but fnds be carefull abt yr



academic drop year. they will be seeking for a peculiar reason. frankly saying

I had three years gaps between +2 & eng. so i made a ful proof reason

& just mug it up. i told her everything which i had prepared. & really it

worked well. she got satisfied.i was very confident & u shd be there with a lot confidence & enthusiasm.show yr genuine interest in their company with regarding data .



rest were simple questions like--

what will u want to improve in yrself?

yr interests?

wt r u doing to overcome yr weaknesses.?



like that...

but do't get nervous. in this area u have to make a difference. ther r

very supportive. one more important thing fnds.. i think there was a specific panel there . & that panel did't select any c&idate.so it depends on yr luck.





TECHNICAL INTERVIEW Questions:



FNDS. it totally depends on your knowledge. they will ask u simple &

basic question.

they asked me only 2 questions.



(1) u have several attributes. like.. employee no,employee name, employee id,supervisor no, supervisor name, months, no of days remained,



so the question was to make a normalized relationship schema.



(2) just print the numbers in reverse order fm 1 to 100 .. that satisfy n mod 2=0



READ ANSWER and EXPLANATION

LATEST 2008 january ACCENTURE Employment Questions PATTERN 1

Updated for 2026
The current version of this guide — verified for 2026 placement season — is on PapersAdda. Read the latest →
ACCENTURE Aptitude test for job



Interview process will consist of

1. aptitude test

2. g.d [1 year back there was no g.d}

3. H.R (human resource) interview

4. Technical interview



aptitude TEST:

Written Test Consist of 55 question to be answered in 1 Hr. &

5 minutes for a short ESSAY on a given topic. the topic for my batch

was impact of modernisation in india.

Written Test consist of Three Section:

1) Verbal 20 Questions

2) Aptitude 20 Questions

3) Analytical 15 Questions

1) VERBAL SECTION

It consisted of question like

fill in the blanks using correct prepostions :3-4 ques

eg: - india about 73 percentege -the population live- rural areas. ans: in,of in

fill in the blanks using given ARTICLE :3-4 ques

2-3 question from synonyms

Two passage were given one on SQL language & another on DBMS-easy

2) APTITUDE

2 question like There are 100 students, 76 passed in physics,74 in maths, 10 failed in both ,then how many passed in both?-nos not exact

3 question on set theory like there are 50 people, 20 like football+cricket, 10 like tennis+cricket , 35 like cricket+football. Than how many like only football,cricket,tennis.

1 on coding: eg in a message abc hyu jiu means " pam love money" der ghj jiu means "martha spend money"-type

1 ques on green means blue, blue means red, red means black,lack means violet......

then what is the color of a parrot.

4-5 ques on seating arrangement-linear arrangement

like 1 a.c , 2 tv,3 microwave owens, 4 refrigerators are to be arranged

2 tv should b placed together

a.c & refrigerator cannot be adjacent to each other

if tv is in 2nd pos, a.c in 3& 5 pos, where to place refrigerators etc..



5 ques on

2 statements given:

statements 1 & 2 alone reqired.

statement 1 alone required

statement 2 alone required.

both needed -that type

3) ANALYTICALeasy one 5 - question in decision making

3 or 4 - question on selecting the look alike 800.2352 800.2352 800.2322 800.2532

123.352 123.325 123.532 568.532

very easy -but concentrate hard.

qusestion like ( + rep -, / rep - ,* rep /, - rep + ) than what will be the value of 28/7*6+5-3

- rep /, * rep - ,/ rep +, + rep * ) than what will be the value of

( * rep /, + rep - ,/rep *, - rep + ) than what will be the value of

/ rep *, * rep /, - rep +, + rep -) than what will be the value of

total of 5 such questions:

here also be careful

it is very easy

For ESSAY :5 MINUTES after 1 hour was allowed

This essay is just to check your writing ability.

The exam was conducted in different batches.

for g.d they short listed a large no of people.

for eg they shortlisted 20 for g.d from 48 from the hall I was took the test- these nos are correct.

II ) GROUP DISCUSSION

each group 15 people.from my group only 3 got selected for the H.R interview

from all groups they selected 3 maximum 4-thats what people who took the tests earlier that day told.

GD Topic for my group was



Is g.d necessary for selection process?

dont fight, but you have to dominate the group

say as much as you know about the topic

just saying something wont do .

Gudluck for ur job Employment



Note: This article is from the original mncplacement archive (2008+). For the 2026-current version with verified offers, salary data, and exam patterns, visit the updated guide on PapersAdda.


READ ANSWER and EXPLANATION
Take Advantage Of 25 of the finest Articles to help u prepare for the Placement Papers and Interview questions
You’d Never Guess How easy it is to get a job after reading these placement preparation articles

Here are 25 Placement Preparation Articles


"IMPORTANT NOTE"
We Update our site frequently and we want to keep you guys informed so enter your email in the top left hand box and click subscribe,so that whenever we post new papers it gets delivered right to your mail.



 

© New Placement papers | Latest Placement Papers