Tuesday, 20 August 2013

NVIDIA Information



Amit Bhardwaj – IT student who cracked the NVIDIA interview and working in the company since 1.5 years now with the company. He discussed about the selection process of that he faced at the time of his selection….It would be a 2-day process.
1st day - Aptitude test carries 4 sections : (MODERATE LEVEL QUESTIONS)
a)      C-language (Basic input-output, find errors, find output)
b)      Operating system (Scheduling, paging, segmentation)
c)       Hardware(Computer architecture related questions)
d)      Analytical (Numerical)
Each section carries 12 to 15 questions. And there is sectional cut-off.
2nd  day – Technical/Personal Interview : (HIGH  LEVEL QUESTIONS)
The interview was for 1.5 hrs.
In this, you would have detailed questions of the core subjects of your branch.
For CT/IT students, there would be coding/programming questions in the interview. The main subjects for which they asked questions was from 3rd to 6th sem including :
ii.                  Algorithm & Data Structures

iii.                 Database Management System
iv.                 Software Engineering
v.                   Object Oriented Programming
vi.                 Computer Networks
vii.               Operating Systems
viii.             Microprocessor & Interfacing
For other branch’s students, the  question were from following subjects :
i.                    Computer Architecture & Organization
ii.                  Algorithm & Data Structures
iii.                Microprocessor & Interfacing
iv.                 Chip Manufacturing( Pin configuration of various chips)


MILIND S. DESHKAR
       ( IT DEPT.)

Sunday, 18 August 2013

Aptitude -- 1



Questions 1 - 5 are to be answered on the following data
? A causes B or C, but not both
? F occurs only if B occurs
? D occurs if B or C occurs
? E occurs only if C occurs
? J occurs only if E or F occurs
? D causes G,H or both
? H occurs if E occurs
? G occurs if F occurs

1. If A occurs which of the following must occurs
I. F and G
II. E and H
III. D
(a) I only
(b) II only
(c) III only
(d) I,II, & III
(e) I & II (or) II & III but not both

2. If B occurs which must occur
(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J

3. If J occurs which must have occured
(a) E
(b) either B or C
(c) both E & F
(d) B
(e) both B & C

4. Which may occurs as a result of cause not mentioned
I. D
II. A
III. F
(a) I only
(b) II only
(c) I & II
(d) II & III
(e) I,II & III

5. E occurs which one cannot occurs
(a) A
(b) F
(c) D
(d) C
(e) J

6.A man fixed an appointment to meet the manager, Manager asked him to come two days after the day before the day after tomorrow. Today is Friday. When will the manager expect him? 

7.A man said he spent 1/6 of his as a child, 1/12 as salesman in a liquor shop, 1/7 and 5 years as a politician and a good husband respectively. At that time Jim was born. Jim was elected as Alderman four years back. when he was half of his age. What is his age ?

8.Jack,Doug and Ann, 3 children had a running race while returning from school.Mom asked who won the race. Then Jack replied" I wont tell you I will give u clue, When Ann takes 28 steps Doug takes 24 steps, meantime I take 21 steps. Jack explained that his 6 steps equals Droug's 7 steps and Ann's 8 steps. Who won the race?

9. Every day a cyclist meets a car at the station. The road is straight and both are traveling in the same direction. The cyclist travels with a speed of 12 mph.One day the cyclist comes late by 20 min. and meets the car 5miles before the Station. What is the speed of the car?

10.A lady goes for shopping. She bought some shoestrings. 4 times the number of shoestrings, she bought pins and 8 times, handkerchiefs. She paid each item with their count as each piece's cost. She totally spent Rs. 3.24.How many handkerchiefs did she buy?

11. Complete the series :
a) 3,6,13,26,33,66,____
b) 364,361,19,16,4,1,___( " " " )

12. Lucia is a wonderful grandmother. Her age is between 50 and 70.Each of her sons have as many sons as they have brothers. Their combined number gives Lucia?s age. What is the age?

13.There are two towers A and B. Their heights are 200ft and 150ft respectively and the foot of the towers are 250ft apart. Two birds on top of each tower fly down with the same speed and meet at the same instant on the ground to pick a grain. What is the distance between the foot of tower A and the grain?

14. Grass in lawn grows equally thick and in a uniform rate. It takes 40 days for 40 cows and 60 days for 30 cows to eat the whole of the grass. How many days does it take for 20 cows to do the same?

15. Four tourists A,B,C,D and four languages English, German, French and Italian. They are not able to converse among themselves in one language. Though A does not know English he can act as an interpreter between B and C. No one spoke both French and German. A knows German and was able to converse with D who doesn't know a word in German. Only one language was spoken by more than two persons. Each spoke two languages. Find who spoke what.

16. There is a five digit number. It has two prime digits (1 is not a prime number). Third digit is the highest. Second digit is the lowest. First digit is one less than the third digit. The fifth digit is half of the fourth. The sum of 4th and 5th is less than the first. Find the number.

17. Four persons A, B, C and D are playing cards. Each person has one card, laid down on the table below him, which has two different colors on either side. No card has the same color on both sides. The colors visible on the table are Red, Green, Red and Blue respectively. They see the color on the reverse side and give the following comment.
A:  Yellow or Green
B: Neither Blue nor Green
C:  Blue or Yellow
D: Blue or Yellow
Given that out of the 4 people 2 always lie find out the colours on the cards each person.

18. A 1 k.m. long wire is held by n poles. If one pole is removed, the length of the gap becomes 12/3m. What is the number of poles initially?
Ans: 18 - 6km

19. Find the digits X,Y,Z
X X X X
Y Y Y Y +
Z Z Z Z
--------------
Y X X X Z
----------------

20.  A man starts walking at 3 pm . ha walks at a speed of 4 km/hr on level ground and at a speed of 3 km/hr on uphill , 6 km/hr downhill and then 4 km/hr on level ground to reach home at 9 pm. What is the distance covered on one way?

Thursday, 15 August 2013

Answers to C- test papre-1



Ans: d (Q1)
printf( ) prints address/garbage of i,
scanf() dont hav & sign, so scans address for i
+1, -1 dont hav any effect on code

Ans: b (Q2)


Ans: c) 100, 4, 0  (Q3)
Ans: c)  (Q4)
Error becoz i/(*p) is 25/25 i.e 1 which is int & printed as a float, So abnormal program termination, runs if (float) i/(*p) -----> Type Casting

Ans: b) Hello world (Q5)

Ans: c) (Q6)    printf(" %% ");

Ans: c) (Q7)

Ans a)  (Q8)

Ans: d)   (Q9)  printd Nothing, as after free(obj), no memory is there containing
obj->pName & pbj->pAddress

 Ans: b) (Q10)

Ans: c) (Q11)

Ans: a) (Q12)   2, 2

Ans: a)  (Q13) 2

Ans: a)    (Q14) 1, if we use main|c then error, illegal use of pointer

Ans: c)  (Q15)

Ans: d)  (Q16)  Infinite loop as x is decremented twice, it never be 0
and loop is going on & on

Answer : c) (Q17)       5

Answer : d)  (Q18)  compilation error no ++++ operator allowed

Output: Infinite loop (Q19)

Output:  (Q20)  5 5 5

Saturday, 10 August 2013

C test paper -- 1



Instructions:
1. Please ignore any case-sensitive errors and un-included libraries.
2. Time duration : 30 min.

Q1.
main( )
{
int i;
clrscr();
printf("%d", &i)+1;
scanf("%d", i)-1;
}
a. Runtime error.                                 b. Runtime error. Access violation.
c. Compile error. Illegal syntax           d. None of the above

Q2.
#define  POWER(A)  A * A * A                              
main( )
{
 printf("%d", 245/POWER(10+5));
}
a. error             b. 2                  c. 19                d. none of the above

Q3.
union u
{
 struct st
{
 int i = 4;
 int j = 4;
 int k = 4;
 int l;
}st;
int i;
}u;
main( )
{
 u.i = 100;
 printf("%d, %d, %d",u.i, u.st.i, u.st.l);
}
a. 4, 4, 0                      b. 0, 0, 0                      c. 100, 4, 0                  d. 40, 4, 0

Q4.
main( )
{
 int i, j, *p;
 i = 25;
 j = 100;
 p = &i; // Address of i is assigned to pointer p
 printf("%f", i/(*p) ); // i is divided by pointer p
}
To execute it correctly, what changes can we make in the statement : i/(*p) ?
a. Runtime error.                     b. 1.00000                   c. Compile error                      d. 0.00000

Q5.
main( )
{
 char *p = "hello world";
 p[0] = 'H';
 printf("%s", p);
}
a. Runtime error.                     b. Hello world             c. Compile error          d. hello world

Q6. How will you print % character?

a. printf("%)             b. printf("\%)            c. printf("%% )                        d. printf("\%% )

Q7.
const int perplexed = 2;
#define perplexed 3

main( )
{
 #ifdef perplexed
 #undef perplexed
 #define perplexed 4
 #endif
 printf("%d",perplexed);
}
a. 0                  b. 2                  c. 4                  d. none of the above

Q8.
struct Foo
{
 char *pName;
};
main( )
{
 struct Foo *obj = malloc(sizeof(struct Foo));
 clrscr();
 strcpy(obj->pName,"Your Name");
 printf("%s", obj->pName);
}
a. Your Name              b. compile error                       c. Name           d. Runtime error

Q9.
struct Foo
{
 char *pName;
 char *pAddress;
};
main( )
{
 struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
 obj->pName = malloc(100);
 obj->pAddress = malloc(100);

strcpy(obj->pName,"Your Name");
 strcpy(obj->pAddress, "Your Address");

free(obj);
 printf("%s", obj->pName);
 printf("%s", obj->pAddress);
}
a. Your Name, Your Address                         b. Your Address, Your Address
c. Your Name Your Name                              d. None of the above

Q10.
main( )
{
 char *a = "Hello ";
 char *b = "World";
clrscr();
 printf("%s", strcat(a,b));
}
a. Hello                        b. Hello World                        c. HelloWorld             d. None of the above

Q11.

main( )
{
 char *a = "Hello ";
 char *b = "World";
 clrscr();
 printf("%s", strcpy(a,b));
}
a. Hello                     b. Hello World         c. World       d. None of the above

Q12.
main( )
{
 printf("%d, %d", sizeof('c'), sizeof(100));
}
a. 2, 2                          b. 2, 100                                  c. 4, 100                                  d. 4, 4

Q13.
main( )
{
 int i = 100;
 clrscr();
 printf("%d", sizeof(sizeof(i)));
}
a. 2                              b. 100                          c. 4                              d. none of the above

Q14.

main( )
{
 int c = 5;
 printf("%d", main||c);
}
a. 1                  b. 5                  c. 0                  d. none of the above

Q15.
main( )
{
 int i =10, j = 20;
 clrscr();
 printf("%d, %d, ", j-- , --i);
 printf("%d, %d ", j++ , ++i);
}
a. 20, 10, 20, 10                      b. 20, 9, 20, 10            c. 20, 9, 19, 10                        d. 19, 9, 20, 10

Q16.
main( )
{
 int x=5;

for(;x!=0;x--) {
 printf("x=%d", x--);
 }
}
a. 5, 4, 3, 2,1                           b. Lvalue required       c. 5, 3, 1                      d. Infinite Loop

17.
main( )
{
int A=6;
switch(A)
{ default : A+=2;
case 4: A=4;
case 5: A++;
break;
}
printf("\n A = %d",A);
}
a)8                   b)6                   c)5                   d)4                    

Q18.
#define INC(X) X++
main( )
{
int X=4;
printf("%d",INC(X++));
}
 a)4                  b)5                  c)6                   d)compilation error error

Q19. What is the output ?
main( )
{
    char i;
    clrscr( );
    for(i=120;i<=128;i++)
   {
         printf("%d ",i);
   }
    getch( );
}

Q20. What is the output ?
extern int j;
void main( )
{
    int i=0;
    clrscr( );
    for(i=0;i<=2;i+=1)   {
         j=5;
         printf(" %d ",j);
         j++;    }
    getch( ); }