iNautix Written Test 2011

Q1. Assume that a, b, c are integer variables. Values of a, b and c are 2, 3 and 1 respectively. Which of the following statement is correct regarding the assignment d = a < b < c - 1;

a) Above statement is syntactically not correct

b) Value zero will be stored in variable d

c) Value one will be stored in variable d

d) Value -1 will be stored in variable d

Q2. What is the alternative name for application software?

a) Utility software

b) Specific software

c) End-user software

d) Practical software

Q3. A factor in the section of source language is

a) Programmer skill

b) Language availability

c) Program compatibility with other software

d) All the above

Q4. In the IBM PC - AT, What do the words AT stand for

a) Additional Terminal

b) Advance Technologies

c) Applied Technologies

d) Advanced Terminology

Q5. Data integrity refers to

a) Privacy of data

b) The simplicity of data

c) The validity of data

d) The security of data

Q6. EBCDIC can code up to how many different characters?

a) 8

b) 16

c) 32

d) 64

e) 256

Q7. A logic gate is an electronic circuit which

a) Makes logic decisions

b) Allows electron flow in only direction

c) Works on binary algebra

d) Alternates between 0 and 1

Q8. The process of converting analog signal into digital signals so they can be processed by a receiving computer is referred to as

a) Modulation

b) Demodulation

c) Synchronizing

d) Desynchronizing

Q9. Multiprogramming was made possible by

a) Input/ Output units that operate independently of the CPU

b) Operating Systems

c) Both c and d

d) Neither a and b

Q10. A program written in machine language is called as ___________ program

a) Assembler

b) Object

c) Computer

d) Machine

Q11. What is the usual number of bits transmitted simultaneously in parallel data transmission used by microcomputers?

a) 6

b) 9

c) 8

d) 7

Q12. Which data communication method is used for sending data in both directions at the same time?

a) Super duplex

b) Simplex

c) Half duplex

d) Full duplex

Q13. An integrated circuit is

a) A complicated circuit

b) An integrating device

c) Much costlier than single transistor

d) Fabricated in a single silicon chip

Q14. A distributed data processing configuration in which all activities must pass through a centrally located computer is called

a) Ring Network

b) Spider network

c) Hierarchical Network

d) Data control Network

Q15. Compared with the secondary storage, the primary storage is:

a) slow and inexpensive

b) fast and inexpensive

c) fast and expensive

d) slow and expensive

Q16. Different components on the motherboard of a PC processor unit are linked together by sets of parallel electrical conducting lines. What are these lines called?

a) Conductors

b) Buses

c) Connectors

d) Connectivity

Q17. What is the output of the following program?

main( )

{

int arr[ ] = { 0, 1, 2, 3, 4};

int i, *ptr;

for(ptr = arr + 4; ptr = arr; ptr--)

printf(%d, *ptr);

}

a) 0 1 2 3 4

b) 4 3 2 1 0

c) 1 2 3 4 0

d) None

Q18. What is the output of the following program?

#define AND &&

#define OR ||

#define LE <=

#define GE >=

main( )

{

char ch = D;

if((ch GE 65 AND ch LE 90) OR (ch GE 97 AND ch LE 122))

printf(Alphabet);

else

printf(Not an alphabet);

}

a) No Alphabet

b) Alphabet

c) error

d) None

Q19. What is the output of the following program?

#define NULL 0

main( )

{

struct node

{

struct node *previous;

int data;

struct node *next;

} ;

struct node *p, *q;

p = malloc(sizeof(struct node));

q = malloc(sizeof (struct node));

p->data = 75;

q->data = 90;

p->previous = NULL;

p->next = q;

q->previous = p;

q->next = NULL;

while(p!=NULL)

{

printf(%d
, p->data);

p =p->next;

}

}

a) 90 75

b) 75 90

c) 90

d) None

Q20. What is the output of the following program?

main( )

{

int n[25];

n[0] = 100;

n[24] = 200;

printf(%d %d, *n, *(n + 24) + *(n + 0));

}

a) 200 100

b) 100 300

c) 100 200

d) None

Q21. What is the output of the following program?

main( )

{

struct employee

{

char name[25];

int age;

float bs;

};

struct employee e;

e.name = Hacker;

e.age = 25;

printf(%s%d, e.name, e.age);

}

a) Hacker, 25

b) Error message

c) 25 Hacker

d) None

Q22. What is the output of the following program?

main( )

{

int i=3;

i=i++;

printf(%d,i));

}

a) 3

b) 4

c) undefined

d) Error

Q23. What is the output of the following program?

#define str(x) #x

#define Xstr(x) str(x)

#define oper multiply

main( )

{

char *opername=Xstr(oper);

printf(%s,opername);

}

a) oper

b) multiply

c) Error

d) None

Q24. What error would the following function give on compilation?

f (int a, int b)

{

int a;

a=20;

return a;

}

a) Missing parentheses in return statement.

b) The function should be defined as int f(int a, int b)

c) Redeclaration of a.

d) None of the above.

Q25. What is the output of the following program?

main( )

{

struct emp{

char n[20];

int age;}

struct emp e1={david,23};

struct emp e2=e1;

if(e1= = e2) printf(structures are equal);

}

a) structures are equal

b) No output

c) Error

d) None

Q26. What is the output of the following program?

#define sqr(x) (x*x)

main( )

{

int a,b=3;

a=sqr(b+2);

printf(%d,a);

}

a) 25

b) 11

c) Error

d) Garbage value

Q27. What is the output of the following program?

main( )

{

printf(%d %d %d, sizeof(3), sizeof(3), sizeof(3));

}

a) 1 1 1

b) 2 2 2

c) 1 2 2

d) 1 1 1

Q28. What is the output of the following program?

main( )

{

printf(%c,abcdefgh[4]);

}

a) a

b) e

c) Error

d) None

Q29. What is the output of the following program?

main( )

{

int a[ ] = { 10, 20, 30, 40, 50};

int j;

for (j = 0; j < 5; j++)

{

printf(
%d, * a);

a ++;

}

}

a) 0.5

b) 0.4

c) Error

d) None of the above

Q30. What is the output of the following program?

main ( )

{

int n=20, i = 0;

while(n- - >0);

i = i +n;

}

The end value of i is

a) 210

b) 20

c) -1

d) 200

Q31. What will be the result of executing following program?

main( )

{

char *x=New;

char *y=Dictionary;

char *t;

void swap (char * , char *);

swap (x,y);

printf((%s, %s),x,y);

char *t;

t=x;

x=y;

y=t;

printf(-(%s, %s),x,y);

}

void swap (char *x,char *y)

{

char *t;

y=x;

x=y;

y=t;

}

a) (New, Dictionary)- (New, Dictionary)

b) (Dictionary, New)- (New, Dictionary

c) (New, Dictionary)- (Dictionary, New)

d) (Dictionary, New)- (Dictionary, New)

Q32. What is the output of the following program?

main( )

{

static char s[ ] = Rendezvous;

printf(%d, *(s+ strlen(s)));

}

a) 0

b) Rendezvous

c) Error

Q33. What is the output of the following program?

int count, sum;

main( )

{

for(count = 4; sum + = - - count);

printf(%d, sum);

}

a) Program goes into an infinite loop

b) 356653 will be displayed

c) 354453 will be displayed

d) None of the above

Q34. What is the output of the following program?

main( )

{

static float a[ ] = { 13.24, 1.5}

float *j, *k;

j = a;

k = a + 2;

j = j * 2;

k = k/2;

printf(%f%f , *j, *k);

}

a) Error

b) Some value

c) No output

d) None of the above

Q35. What is the output of the following program?

main( )

{

int i = 0; char ch = A

do {

printf(%c, ch);

} while (i++ <5| | ++ch < =F);

}

The output of above program is

a) ABCDEF

b) AAAAAA BCDEF

c) A will be displayed infinitely

d) None of the above

Q36. What is the output of the following program?

main( )

{

int a[5] = {2, 4, 6, 8, 10);

int i, b =5;

for(i=0; i<5; i++)

{

f(a[i], &b);

printf(
%d %d, a[i], b);

}

}

f(int x, int *y)

{

x = *(y) +=2;

}

Q37. What is the output of the following program?

main( )

{

char a[ ];

a[0] = A;

printf(%c, a[0]);

}

a) Compilation Error

b) No output

c) A

d) None

Q38. What is the output of the following program?

main( )

{

int z = 4;

printf( %d, printf( %d %d , z, z));

}

a) 4 4 3

b) 4 4 5

c) 4 4 4

d) Error

Q39. What is the output of the following program?

main( )

{

int x = 5;

printf(%d %d, x++, ++x);

return 0;

}

a) Error

b) 6, 6

c) 5, 7

d) 7, 6

Q40. What is the output of the following program?

int i = 0;

main( )

{

printf(i = %d, i);

i++;

val( );

printf(After i=%d, i);

val( );

}

val( )

{

i =100;

printf(vals i=%d
, i);

i++;

}

a) i =0

b) i= 1

c) Error

d) None of the above

APTITUDE:

Q41. One man can dig a trench in 2 hours,

A second man can dig a trench in 3 hours,

A third man can dig a trench in 5 hours,

A fourth man can dig a trench in 6 hours.

How many hours will it take to dig a trench if they all work together at their own speeds?

a) 0.43

b) 0.63

c) 0.83

d) 1.03

e) 1.23

Q42. How many minutes before 12 noon is it, if one hour ago it was three times as many minutes after 8 am?

a) 30 minutes

b) 25 minutes

c) 35 minutes

d) 45 minutes

e) 40 minutes

Q43. A new copy machine can run off 1,500 workbooks in 8 hours, while it takes an older copy machine 12 hours to do the same job. What is the total number of hours that it would take both copy machines working at the same time, but independently, to run off the 1,500 workbooks?

a) 4.4

b) 4.6

c) 4.8

d) 5

e) 10

Q44. At an international party all the Indian guest ate 2 sandwiches, each American guest ate 4, each Australian ate 8, and all Russians guests ate 12. There had been a total of 234 sandwiches served. The number of guests from each country was equal. How many guests in total were in the party?

a) 12

b) 24

c) 36

d) 48

e) 9

Q45. When he was a child, Gopal wanted to buy his mother 3 red roses for her birthday. He decided to start saving on the first day of the month. On the first day, he put ONE paise in his piggy bank; on the second day he put TWO paise, on the third day he put THREE paise and so on.

a) 13th day of the Month

b) 19th day of the Month

c) 24th day of the Month

d) 30th day of the Month

e) 21st day of the Month

Q46. A car traveled 75% of the way from town A to town B by traveling at T hours at an average speed of V mph. The car travels at an average speed of S mph for the remaining part of the trip. Which of the following expressions represents the average speed for the entire trip?

a) .75V + .25S

b) .75T + .25S

c) VT / (3S)

d) 4VT / (T+S)/3

e) 4VS / (3S+V)

Q47. If the width of a rectangle is increased by 10% and the length is decreased by 20% by what percent does the area decrease?

a) 2%

b) 12%

c) 16%

d) 20%

e) 21%

Q48. The recipe for a cake called for 2/3 cup of sugars. How many cakes did Jane bake for a baked goods sale if she used 4 cups of sugar?

a) 2

b) 3

c) 4

d) 5

e) 6

Q49. Suppose half of the people on a bus exit at each stop and no additional passengers board the bus. If on the third stop the next to last person exits the bus, then how many people were on the bus?

a) 20

b) 16

c) 8

d) 6

e) 4

Q50. A B C D E F G H

Which letter is immediately to the right of the letter three to the left of the letter immediately to the right of the letter which is four to the right of the letter which comes midway between the letters A and C?

a) F

b) G

c) E

d) D

Directions for questions 51 to 54:

A particular seafood restaurant serves dinner Tuesday through Sunday. The restaurant is closed on Monday. 5 entrees – Egg, Chicken, Mutton, Fish and Lamb – are served each week according to the following restrictions.

• Chicken is served on 3 days each week, but never on a Friday

• Mutton is served on 1 day each week

• Fish is served on 3 days each week but never on consecutive days

• Chicken and Egg are both served on Saturday and Sunday

• Lamb is served 5 days each week

• No more than 3 different entrees are served on any given day

Q51. If Fish is served on Saturday, it could be true that

a) Egg and Fish are both served on Sunday

b) Egg and Chicken are both served on Tuesday

c) Mutton and Chicken are both served on Thursday

d) Lamb and Egg are both served on Saturday

e) Mutton and Egg are both served on Friday

Q52. On which of the following pairs of days could the restaurants menu of entrees be identical?

a) Friday and Sunday

b) Tuesday and Wednesday

c) Saturday and Sunday

d) Wednesday and Friday

e) Thursday and Friday

Q53. Which of the following statements provide sufficient information to determine on which 3 days Chicken is served?

a) Fish and Mutton are served on same day

b) Mutton and Egg are both served on Tuesday

c) Lamb is served on Saturday and Mutton is served on Tuesday

d) Fish is served on Saturday and Egg is served on all but one of the six days

e) Lamb is served on Sunday and Egg is served on Tuesday and Thursday

Q54. Which of the following is a complete and accurate list of the days on which Chicken and Mutton may be served?

a) Tuesday, Thursday

b) Tuesday, Wednesday, Thursday

c) Monday, Tuesday, Wednesday

d) Tuesday, Wednesday, Thursday, Friday

e) Tuesday, Wednesday, Thursday, Saturday

Q55. A B C D E F G H

Which letter is two to the right of the letter immediately to the left of the letter three to the right of the letter immediately to the left of the letter E?

a) C

b) D

c) A

d) H

e) G

Q56. How many minutes past 11 a.m. is it, if two hours ago it was three times as many minutes past 8 a.m.?

a) 55 minutes

b) 35 minutes

c) 25 minutes

d) 1 hour

e) 30 minutes

Q57. If you had a piece of paper that was 0.001 inches thick, how tall a pile would it make if it were folded in half 10 times?

a) 2.047

b) 1.024

c) 1.023

d) 0.512

e) 2.048

Q58. Mary was both 13th highest and the 13th lowest in a spelling contest. How many people were in the contest?

Follow us

Employers

FreshersLive - No.1 Job site in India. Here you can find latest 2018 government as well as private job recruitment notifications for different posts vacancies in India. Get top company jobs for both fresher and experienced. Job Seekers can get useful interview tips, resume services & interview Question and answer. Practice online test free which is helpful for interview preparation. Register with us to get latest employment news/rojgar samachar notifications. Also get latest free govt and other sarkari naukri job alerts daily through E-mail.