Documente Academic
Documente Profesional
Documente Cultură
1. How do you write a program which produces its own source code as its
output?
2. How can I find the day of the week given the date?
3. Why doesn't C have nested functions?
4. What is the most efficient way to count the number of bits which are set
in a value?
5. How can I convert integers to binary or hexadecimal?
6. How can I call a function, given its name as a string?
7. How do I access command-line arguments?
8. How can I return multiple values from a function?
9. How can I invoke another program from within a C program?
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
files?
"C"
25.
26.
What is Namespace?
27.
28.
29.
30.
31.
32.
33.
How many lines of code you have written for a single program?
34.
What is "strstream" ?
35.
36.
37.
Write any small program that will compile in "C" but not in "C++"
38.
39.
What is a "RTTI"?
40.
41.
42.
43.
What will happen if I allocate memory using "new" and free it using
"free" or allocate sing "calloc" and free it using "delete"?
44.
45.
46.
47.
48.
49.
50.
51.
52.
What is inheritance?
53.
54.
55.
56.
57.
What is Polymorphism?
58.
59.
60.
61.
62.
63.
64.
65.
What is association?
66.
67.
68.
69.
What is a pointer?
70.
What is a structure?
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
Out of fgets() and gets() which function is safe to use and why?
86.
87.
What is recursion?
88.
Differentiate between a for loop and a while loop? What are it uses?
89.
90.
Write down the equivalent pointer expression for referring the same
element a[i][j][k][l]?
91.
92.
93.
94.
95.
96.
97.
How will you declare an array of three function pointers where each
function receives two ints and returns a float?
98.
99.
100.
What does the error 'Null Pointer Assignment' mean and what causes
this error?
101.
What is near, far and huge pointers? How many bytes are occupied by
them?
102.
How would you obtain segment and offset addresses from a far address
of a memory location?
103.
Are the expressions arr and &arr same for an array of integers?
104.
Does mentioning the array name gives the base address in all the
contexts?
105.
106.
107.
108.
How can we check whether the contents of two structure variables are
same or not?
109.
110.
111.
What is the difference between an enumeration and a set of preprocessor # defines?
112.
what do the 'c' and 'v' in argc and argv stand for?
113.
114.
What is the maximum combined length of command line arguments
including the space between adjacent arguments?
115.
If we want that any wildcard characters in the command line
arguments should be appropriately expanded, are we required to make any
special provision? If yes, which?
116.
Does there exist any way to make the command line arguments
available to other functions without passing them as arguments to the
function?
117.
What are bit fields? What is the use of bit fields in a Structure
declaration?
118.
To which numbering system can the binary number 1101100100111100 be
easily converted to?
119.
Which bit wise operator is suitable for checking whether a
particular bit is on or off?
120.
Which bit wise operator is suitable for turning off a particular bit
in a number?
121.
Which bit wise operator is suitable for putting on a particular bit
in a number?
122.
Which bit wise operator is suitable for checking whether a
particular bit is on or off?
123.
which one is equivalent to multiplying by 2:Left shifting a number
by 1 or Left shifting an unsigned int or char by 1?
124.
Write a program to compare two strings without using the strcmp()
function.
125.
126.
one.
127.
128.
129.
130.
131.
132.
133.
134.
How would you dynamically allocate a one-dimensional and twodimensional array of integers?
135.
136.
137.
When reallocating memory if any other pointers point into the same
piece of memory do you have to readjust these other pointers or do they
get readjusted automatically?
138.
Which function should be used to free the memory allocated by
calloc()?
139.
140.
141.
142.
Which header file should you include if you are to develop a
function which can accept variable number of arguments?
143.
144.
How can a called function determine the number of arguments that
have been passed to it?
145.
Can there be at least some solution to determine the number of
arguments passed to a variable argument list function?
146.
147.
148.
149.
150.
A pointer to function which receives an int pointer and returns a
float pointer
151.
152.
153.
Does there exist any other function which can be used to convert an
integer or a float to a string?
154.
155.
How would you use qsort() function to sort the name stored in an
array of pointers to string?
156.
How would you use bsearch() function to search a name stored in
array of pointers to string?
157.
158.
159.
How would you use the functions fseek(), freed(), fwrite() and
ftell()?
160.
How would you obtain the current time and difference between two
times?
161.
162.
How would you implement a substr() function that extracts a sub
string from a given string?
163.
What is the difference between the functions rand(), random(),
srand() and randomize()?
164.
165.
166.
Can you use the function fprintf() to display the output on the
screen?
167.
What is an object?
168.
169.
170.
171.
172.
173.
174.
175.
What is abstraction?
176.
177.
What is encapsulation?
178.
179.
180.
181.
182.
183.
184.
What do you mean by multiple inheritance and multilevel inheritance?
Differentiate between them.
185.
186.
What is a template?
187.
What are the main differences between procedure oriented languages
and object oriented languages?
188.
What is R T T I ?
189.
190.
What is namespace?
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
What is late bound function call and early bound function call?
Differentiate.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
202.
203.
204.
205.
[d] none
Ans: b
---------------------------------------3) In a processor these are 120 instructions . Bits needed to impliment
this instructions
[a] 6 [b] 7 [c] 10 [d] none
Ans: b
----------------------------------------4) In 8085 microprocessor READY signal does.which of the following
is incorrect statements
[a]It is input to the microprocessor
[b] It sequences the instructions
Ans : b
---------------------------------------5) Return address will be returned by function to
[a] Pushes to the stack by call
Ans : a
------------------------------------------
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
6)
n=7623
{
temp=n/10;
result=temp*10+ result;
n=n/10
}
Ans : 3267
---------------------------------------------7) If A>B then
F=F(G);
else B>C then
F=G(G);
in this , for 75% times A>B and 25% times B>C then,is 10000 instructions
are there ,then the ratio of F to G
[a] 7500:2500 [b] 7500:625 [c] 7500:625 if a=b=c else
7500:2500
-------------------------------------------------8) In a compiler there is 36 bit for a word and to store a character 8bits are
needed. IN this to store
a character two words are appended .Then for storing a K characters string,
How many words are needed.
[a] 2k/9 [b] (2k+8)/9 [c] (k+8)/9 [d] 2*(k+8)/9 [e] none
Ans: a
--------------------------------------------------------9) C program code
int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15
Ans: b
--------------------------------------------------------------PART-B
------1) Virtual memory size depends on
[a] address lines
[b] data bus
[c] disc space
[d] a & c
[e] none
Ans : a
----------------------------------------------2) Critical section is
[a]
[b] statements which are accessing shared resourses
Ans : b
------------------------------------------------3) load a
mul a
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
store t1
load b
mul
b
store t2
mul t2
add t1
then the content in accumulator is
Ans : a**2+b**4
--------------------------------------------------4) question (3) in old paper
5) q(4) in old paper
6) question (7) in old paper
7) q(9) in old paper
-----------------------------1. A topic on Gandhiji's Salt Satyagrah Movement Four sentences were given
and you have to arrange them to make a paragraph.
Ans. CABD (Check it out).
2. What can't be changed by the user program (Four choices were there).
Ans. Memory Map (Check it out).
3.In which layer ROUTING is performed ?
Ans. Network Layer
4.What is the output of the following code snippet
main()
{
printf(5+"Fascimile");
}
Ans. Mile
5.What is the output
Int count=10,sum=0,*temp;
Temp=&count;
Sum=? &count;( It was actually given temp=? &count;
which is probably wrong)
printf("sum=%d count= %d temp=%d ",sum,count,*temp);
Ans. C (most expected answer ,check it)
6.Which one has no L-Value
[i] a[i]
[ii] i
[iii] 2 [iv] *(a+i) Ans . [iii]
7. In threaded binary for which traversal orders unused left and right links
are used?
8. Which is false for binary tree?
[i] Any node should have two children.
[ii]
[iii] At fourth level the number of node should be less than 16.
9. Which is true for binary search ?
[i] Traversal scheme
[ii]
[iii]Greedy algorithm
[iv] Divide and conquer algorithm
Ans. [iv]
10.
What is the protocol used for getting the physical address by supplying IP
address of a node ?
[i] ARP
[ii] RARP
[iii] BOOTP
[iv] DHCP Ans. [i]
8a.m.What
25. One puzzle:(I cant exactly remember this question giving brief idea of this
question)there were four guys A,B,C,D. the older
and younger relation is given . U have to find the age of the A
Ans: 7 years(check it out).
26. Fallacy question: six sentences are given.
[i]
[ii]
[iii]
[iv] Ans: [i].
27. Nine people six floor. Conditions are given.(This was a very long
paragraph).Peoples named like I,J,K,L,M,N,O,P,Q.
Ans:i)J.
28. A question regarding node.
29.A problem regarding age of father and son(very easy problem u can solve it).
30.Point out error in the follwing sentence:I got the book in the office and
slipped it out.
[i]I got the book.
[ii] in the.
[iii]office and .
[iv] slipped it out.
Ans:[iv].
31. Point out error:(about a flowers garden)
ans:(I can't remember the options).answer will be "among on another".
Ans. Adjoined to
d. outspoken
11.
Passage was very lengthy but easy (first read the ques then find
them in the passage)
a)
Analytical
12.
13.
Two
30 sec to
speeds of
Ans: 22.5
14.
One man took Rs. 600 to complete the work and one woman took Rs. ()
to complete the work. If the daily wages of the man is Rs. 60 and for
woman is Rs. 15.Find how much wages will be required when both works
together?
Ans: Rs. 450.
15.
16.
17.
U can weigh x times on a balance ,there were nine coins from which
one was fake coin with higher weight.Find x to find out the false coin.
Ans: 3
18.
X and
conditions:
x so is the
Ans: 50 and
19.
Y are two boxes in which the nos. 10-70 are arranged on some
none of the boxes should have more than 4 nos. if 10 is in the
40. and some conditions.Which can be possible.
60 in X.
20.
21.
The nos. 1 to 8 are to fill in the grid such that no two consecutive
nos. should be placed besides each others either parallel or diagonally.
Then what no. will be in G?
ans: 6
22.
23.
24.
25.
26.
Technical
Which is not a search engine?
a) google
b)lycos
c)altavista
27.
c)
2 16bit words
29.
30.
31.
32.
33.
c)
ans bit
IDE independent
d)
35.
36.
37.
38.
Wipro Interview
1) Tell me about yourself
2) Favourite Subjects
3) What are the different types of sorts you know
4) Which sorting algorithm is useful in general
5) Given the different data sets,how do i know which sort to use
6) What is difference between C and C++
7) where do u use C and where do u use C++
8) What is polymorphism
9) In DBMS he asked me about SQL queries.
ex. name1 course1
name2 course2
name1 course2
name3 course2
name2 course1
There was a technical interview followed by the HR interview. Following were the
questions asked:
Technical:
1.Tell me about yourself
(A brief description of yourself followed by what your technical skills are)
2.I'll first ask some questions on Software Engineering, followed by those in C
and then about your projects.
(Though I didn't mention SE in my resume nor did I mention any project in SE, he
was keen to ask questions in SE)
3. What are the different models of SDLC?
4. Differentiate between Spiral and Incremental model?
5. What is the disadvantage of Incremental model? Give an example to explain.
6. What do you mean by the Design phase? What are the tools that can be used in
this phase?
7. Coming to C, what is hashing? Why do we use hashing and not arrays? How do we
implement a Hash table?
8. What are function pointers? Give the syntax for the same.
9. Why do we use pointers in C at all?
10. You know about structures and union. Why is Union used? Give a real life
example in which you'll use union?
11. What is SSL?
12. What is the difference between HTTP and HTTPS?
13. Explain two of your projects (one should be FYP).
(This round took around 20 minutes)
HR :
The interview was such that no prior preparation could be done. The only
preparation required was for questios like why did you skip some companies. If
you say you skipped 6 companies for Wipro, you need to convince them why did you
do so for a company like Wipro. They too don't expect that you'll give that kind
of answer. you should just have a reason behind your selection of companies.
1. Tell me about yourself. She picked up some points in between and asked about
them.
2. (We were asked to fill a form containing our details, including strengths and
weaknesses) She asked about the weaknesses. Tell how you are trying to overcome
that weakness.
3. What were the companies whose tests you took before Wipro?
A. Oracle and Convergys.
4. Why not TCS and Infosys?
5. Why Wipro now? How can it help you in building your career?
6. Are you hopeful in getting into Wipro?
7. My questions end here, do you have any questions to ask?
(I asked about the difference in the nature of training provided two months
before joining Wipro and the three months training provided after joining
Wipro.)
(This round took around 15 minutes)
The questions in HR were easier as compared to the those asked last year as they
involved knowledge about self only. What I judged was that they were looking at
communication skills, clarity of goals, strengths and weaknesses.
These are the questions I remember. Though there were some more based on my
answers.
********************************************************************
There were 2 round in the Interview:Technical and HR
The process is that they would take both Technical and HR
interview into consideration.It's not like u get through Technical and then
attend HR interview.
Technical Interview: (25 Minutes)
----------------------------I said my interests are Operating Systems and DBMS
1.What is a process and what is thread
2.What are the advantages of thread,how does the multithreading look like
3.What is MultiProcessing and Multitasking
4.What is a stack and Queue and its applications
5.Which one out of (stack , Queue) do u use for Infix and Postfix
6.What is indexing,what are the advantages and Disadvantages of it.
7.What is DeNormalization,where does it have it's application
8.What are the Different Objects in DBMS ( i didn't answer it,she said Objects
are Views,Sequences ....)
9.What are Self Join and Outer Join,where do u use it.
10.Give a Sql Query which uses Outer Join.(she gave me 2 tables and question on
it)
Finally, She asked do u have anything to ask?
1.I asked that Wipro has Development Centres in Bangalore,Chennai etc...So at
each place,do u concentrate on Single Domain like Product design services at one
HR interview:(15 Minutes)
----------------Formalities like Excuse me ma'm,may i come in??,Good Evening Ma'm....
1.It was not routine like tell me about urself but asked my family and wat does
my father do...
2.Did u attend any interviews
3.I mentioned in my CV that i am glutton,i eat a lot ....So the question is do u
eat a lot..
4.So how do u pass time...
5.why u have chosen IIIT and Computer Science?
6.If u r an employee of Wipro and How do u explain to other's about Wipro?
Ans:I said wipro is Technology Service Company. It has development Centres in
Bangalore,Chennai,Hyderabad in India and U.S.A,canada,Australia,Japan etc...
It's Vision is to become Global Top 10 Technology Service Company by 2010. (Here
she asked so u have gone through website and I said yes). It provides customer
solutions for wide range of services like Finance,Banking, Product Design
Services,Business Process Outsourcing...
7.Why Wipro
Ans:Explained that i would like to join a service company rather than a product
company.Also I said that I met some seniors who joined wipro and they told me
that "if u want work,enjoyment and Development,then Wipro is the place to be". I
said finally that I was inspired by the philosophy of Wipro i.e "Challenge to
the Mind and Rewards to the Soul".
8.Tell me in one word that would describe you?
Ans:Commitment. I said that i am committed to my work. I give my best to the job
that I take up and I won't give up until I taste the success of it. (I think
this is answer which has impressed her).
9.Will u give ur 100% efforts if u join Wipro?
Ans: Yes ma'm definitely. Wipro is giving me a job and already said that I am
committed to my work. My work is my job and I will be committed to my job.
Experience:
----------What they see in you?
1.Confidence - how best u r selling urself to the company,the confidence that
u have,
2.Content - Wat you are saying is believable or not.Are u saying it in
routine manner or in a different way.
3.Enthusiasm - Do u really like to join the company.R u enthusiastic enough
analogies
plateau:topography
antonym resistiveness
Jumbled words LEZUPK=--------?
mercenary :financial
Pecuniary: money
Philosophy :mind
Religion :spirit
Corporal:physical
antonyms
spur,harbinger
analogies
surprise :exclamation
output?
Choices:meek,timid,
A,B,C,D,E ,F are to be given adjacent rooms .The rooms dont have complete walls
between them rather sound, smoke can easily get through from one to another as
there are gaps over a wall for free exchange of air. Miss C the head is allotted
room no 5 as wished by her. Miss E needs a telephone for regular communication.
Mr A & Mr B prefer to have adjacent rooms. Mr B,C,D are chain smokers. Miss C is
allergic to cigarette smoke.
a) The correct order of placement of rooms is ..four options were given.
b) Which slot is best for Mr A ?
A doctor is supposed to see his patients at 9.00, 10,00 11.00, 1.00 PM , 2.00 PM
, 3.00 PM. Rajiv, Mark, Mathew, Hassan, Priya, Reni are the patients . Hassan is
scheduled to be seen in early afternoon. Priya should be seen earlier in the day
than Reni. Other such conditions were given and you needed to find based on the
given conditions that how many such combinations are possible.
In a film festival Amitabh ,SRK, Kamal hassan ,Hrithik and Subhash Ghai ,
Maniratnam and Yash Chopra are available as judges. A team of three is to be
sent. The team must contain atleast one actor and ione director. If SRK is
selected Kamal Hassan should also be selected and vice versa, If Amitabh is
selected Subhash Ghai cannot be selected. If Hrithik is selected Maniratnam is
also selected and vice versa. What should be the team if Amitabh is selected ?
Four options..
H == A+B R , F == H + I , T == F + A C+ D , S == T/2, R == A*S; If F is to be
derived what is also needed to be derived ?
a) S b) Q c) R d) T
A team of at least three people is to be constituted for Mayor of a village for
representation in a trade fair. One man, one woman, two boys, three girls are
available. All three males cannot be selected, all four females cannot be
selected. The team should contain at least one elder. What is the possible
configuration that exactly sums up the formation of team :
a) three girls , b) two boys and the lady c) the man, woman , one boy, one girl
d) two boys, woman and a girl.
A series of drama is to be arranged on all the five days of the week. Monday to
Friday. Drama contains fiction, romance, horror, comedy, tragedy. Horror cannot
immediately precede romance , fiction should be scheduled earlier than romance ,
comedy should come after tragedy. If Horror is arranged on Friday then what
should be the sequence of the dramas.(NB there may have been other conditions in
this examples which I presently dont remember )
Three ice creams are to be made available every day by the college canteen. The
IC available are strawberry, butterscotch,vanilla,choco, mango, choco-vanilla,
pineapple. Each day should have ice creams which was also present day before.
All the icecreams can be repeated only thrice during the entire week .IF choco,
vanilla ,straw berry is given on Wednesday . What should be given on Thursday
four options. The question probably has some data missing. Check it out.
A team is to be selected from the hockey players available from the circuit. The
selection team would require atleast four people. There are three coaches A,B,C
and three selectors D,E,F available. But there schedule do not match . A cannot
come if D is selected. If C is selected F should also be selected. If E is
selected B should not be selected. What is the team?
Technical Section
Full form of URL ? a) universal resource locator b) uniform resource locator
c)none of these d) unidentified random locator.
CDROM access is a) RANDOM b) SEMI RANDOM 3) SEQUENTIAL 4) ?????????/
Total time spent by process...waiting in queue, execution etc
response time..of process.
What is the function of shell?
Interpreter b) command interpreter c) interface d) /?????????
Which is a command interpreter ?
a) Shell b) Kernel c)??? d)None of these
main()
{
printf("%c","abcdef"[4]);
}
what is the output ? a) abcdef b) d c) e d) ERROR.
main()
{ char dummy[20]; scanf("%[^a]",dummy);
printf("%s", dummy); }
what will it do?
a) ERROR b) take characters till ctrl z is pressed c) take upto 19 characters d)
None of These
How are objects in cpp passed ?
a) By value b) By reference
structure ? . Where is the file information stored on the hard disk ? What is
FAT ? How are files physically arranged on the hard disc?
What is JVM, what is BYTE CODE ? What is multithreading ? How can it be
implemented using C, write a program to describe it? What is the complexity of
radix sort and how is it determined? A sequence of 15 numbers was to be sorted
using heap sort. (He stopped me after the 3rd iteration).
Some questions related to java-script, dynamic HTML, static HTML, ASP, .NET A
query on natural join in SQL, what is the need of normalization ? What is data
inconsistency and redundancy? What is the basic difference between file systems
and database systems? What are triggers and assertions in SQL? How can you use C
to connect with Oracle SQL database? (Using Oracle 8i PRO C/C++ precompiler )A
complicated query on a trigger. (which I couldnt ans).
What is fork system call? How is a child process called and what happens to the
parent ? In C what is spawnv () function, describe its execution. How can you
use C for writing assembly language programs ?
If you have done any project then try to bring the discussion towards it. I was
interviewed on the project for about 20 min and I kept on explaining till he
took up the HR form and signed it!!!! The interviewer was very impressed with my
technical knowledge and gave his feedback to the HR interviewer as Very
Confident & sound technical skills. (I had overlooked the remark when he was
writing it !!!)
HR Interview.
I was initially asked to describe myself . Since I had presented four papers in
different places in India I took his attention towards it by telling that one of
my hobbies is public presentation, and I supported it with example . He asked me
about each and every paper and I took 45 min to explain him all the papers. Then
he asked whether I wanted to know anything about WIPRO. I asked him around 11 12 questions and he was pretty impressed. The trick was to just to nod ur head
and frame the next question in line while he was explaining one question.
WIPRO has undertaken a project named MOBIO it deals with biometrics. Since
our minor project is on fingerprint recognition I would like to know something
about MOBIO.
After gaining the billion dollar status Mr Azim Premjee said that appreciation
of rupee is a concern. What should be the possible steps so that it no more
remains a concern?
U have diversified from soaps to software as well as maintained a constant
growth rate. What is the secret of ur success?
The work culture at WIPRO is great. How do u maintain it?
How do u allocate projects among ur employees?
How do u select employees for foreign duty?
What is six sigma strategy