HCL placement previous year question papers free download - 2019 2020 2021 MBA
2019 2020 2021 MBA > MBA

#1
16th November 2015, 11:56 AM
 Unregistered Guest

Hello, I am giving the HCL placements exam and I want the previous years papers, which are free to download.
#2
16th November 2015, 11:59 AM
 Super Moderator Join Date: Jul 2012

Hello, here I am proving the sample questions which were asked in the last exams of HCL placements as under:

1. Which of the following about the following two declaration is true
i ) int *F()
ii) int (*F)()
Choice :
a) Both are identical
b) The first is a correct declaration and the second is wrong
c) The first declaraion is a function returning a pointer to an integer and the second is a pointer to function returning int
d) Both are different ways of declarin pointer to a function

2. What are the values printed by the following program?
#define dprint(expr)
printf(#expr "=%d\n",expr)
main()
{
int x=7;
int y=3;
dprintf(x/y);
}
Choice:
a) #2 = 2
b) expr=2
c) x/y=2
d) none

3. Which of the following is true of the following program
main()
{
char *c;
int *ip;
c =(char *)malloc(100);
ip=(int *)c;
free(ip);
}
ans: The code functions properly releasing all the memory allocated

4.output of the following.
main()
{
int i;
char *p;
i=0X89;
p=(char *)i;
p++;
printf("%x\n",p);
}
ans:0X8A

5.which of the following is not a ANSI C language keyword?
a) Incorrect definition
b) structures cannot refer to other structure
c) Structures can ref
er to themselves. Hence the statement is OK
d) Structures can refer to maximum of one other structure

6. What is the size of the following union.
Assume that the size of int =2, size of float =4 andsize of char =1.
Union Tag{int a;flaot b;char c;};
a)2
b)4
c)1
d) 7
ans : b.)

7. What is the output of the following program? (.has been used to indicate a space)
main()
{
char s[]="Hello,.world";
printf(%15.10s",s);
}
a)Hello,.World...
b)....Hello,.Wor
c)Hello,.Wor....
d)None of the above
ans: b.) total 15 spaces and print only 10 characters.

8. If taxi fares were Rs 1.00 for the first 1/5 mile and Rs 0.20 for each 1/5 miles thereafter. The taxi fare for a 3-mile ride was
(A)Rs 1.56
(B)Rs 2.40
(C)RS 3.00
(D)Rs 3.80
(E)Rs 4.20

9. A computer routine was developed to generate two numbers (x,y) the first being a random number between 0 and 100 inclusive, and the second being less than or equal to the square root of the first.Each of the following pair satisfies the routine EXCEPT
(A) (99.10)
(B) (85.9)
(C) (50.7)
(D) (1.1)
(E)(1.0)

10. A warehouse had a square floor with area 10,000 sq.meters. A rectangular addition was built along one entire side of the warehouse that increased the floor by one - half as much as the original floor.How many metersdid the addition extend beyond the original buildings ?
(A)10
(B)20
(C)50
(D)200
(E)500

HCL placement previous year question papers
Attached Files
 HCL placement previous year question papers.doc (27.0 KB, 45 views)

 Similar Threads Thread Thread Starter Forum Replies Last Post Unregistered Main Forum 2 23rd November 2019 02:36 PM neetu Main Forum 2 17th April 2018 04:18 PM kavita Online MBA Discussions 2 17th April 2018 04:09 PM munna Main Forum 2 9th April 2018 03:00 PM mamta Online MBA Discussions 2 9th April 2018 10:50 AM kavita Online MBA Discussions 2 5th April 2018 11:27 PM neetu Main Forum 2 5th April 2018 11:08 PM Unregistered Main Forum 2 4th April 2018 09:13 PM Unregistered Main Forum 2 8th March 2018 04:03 PM Unregistered Main Forum 1 7th October 2016 12:49 PM Unregistered Online MBA Discussions 1 21st November 2015 11:46 AM Unregistered Online MBA Discussions 1 20th November 2015 03:57 PM Unregistered Main Forum 1 12th November 2015 02:55 PM Unregistered Main Forum 1 10th November 2015 10:06 AM Unregistered Main Forum 1 9th November 2015 04:39 PM Unregistered Main Forum 1 9th November 2015 01:59 PM Unregistered Main Forum 1 20th October 2014 01:09 PM Unregistered Main Forum 1 20th October 2014 12:26 PM Unregistered Main Forum 1 20th October 2014 12:25 PM Unregistered Main Forum 1 12th October 2014 11:28 AM

Message:
Options

All times are GMT +5.5. The time now is 12:37 PM.

 -- Default Style -- Lightweight Contact Us - MBA.ind.in Blog MBA.ind.in Discussion Forum - Archive - Top Powered by : Eduvark | Courses Our Contributors : StudyChaCha | Management Forum