Go Back   2023 2024 MBA > MBA > Main Forum > HCL placement previous year question papers free download

Thread: HCL placement previous year question papers free download Reply to Thread
Your Username: Click here to log in
Title:
  
Message:
Trackback:
Send Trackbacks to (Separate multiple URLs with spaces) :
Post Icons
You may choose an icon for your message from the following list:
 

Additional Options
Miscellaneous Options

Topic Review (Newest First)
16th November 2015 11:59 AM
sumit
Re: HCL placement previous year question papers free download

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
Answer : c)

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
Answer: c)x/y=2

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
Answer :c)

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
Answer :d)Rs 3.80

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)
Answer : A) (99.10)

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
Answer: c)50


Here are some of the paper which are free to download:
HCL placement previous year question papers
16th November 2015 11:56 AM
Unregistered
HCL placement previous year question papers free download

Hello, I am giving the HCL placements exam and I want the previous years papers, which are free to download.

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT +5.5. The time now is 07:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2

1 2