Placement Papers: IBM Recruitment Test

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

  1. In 1978, a kg of paper was sold at Rs25/-If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what will be the cost of a kg of paper after 2 years?
    1. 29.12
    2. 29.72
    3. 30.12
    4. 32.65
    5. none of these
  2. In A, B, C are having some marbles with each of them. A has given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A, B, and C have equal number of marbles. If x, y, z are the marbles initially with A, B, C respectively. Then the number of marbles B have at the end
    1. 2 (x-y-z)
    2. 4 (x-y-z)
    3. 2 (3y-x-z)
    4. x + y-z
  3. Ans (c) .
  4. If a car starts from A towards B with some velocity. Due to some problem in the engine after travelling 30km, the car goes with th of its actual velocity The car reaches B 45 min later to the actual time. If the car engine fails ofter travelling 45km, the car reaches the destination B 36min late to the actual time What is the initial velocity of car and what is the distance between A and B in km Ans. 20 & 130.
  5. A person has ₹ 100/-in his pocket, he can as 25 pencils or 15 books. He kept 15% of the money for travelling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.
  6. Ten questions on analogies. Eg: Chief: Tribe: Governor: State epaulette: Shoulder: Tiara: Head guttural: Throat: Gastric: Stomach inept: Clever: Languid: Active knife: Butcher: Hammer: Carpenter:
  7. The values of shares (in ₹) . Of A, B and C from January to June are as follows.
Table Supporting: Placement Papers: IBM Recruitment Test
MonthABC
January306080
February356585
March457565
April407582
May557585
June507580
  • During this period which share has undergone maximium fluctuation?
  • In which month it is possible to buy B and C selling A?
  • In which month the share values are very low?
  • By purchasing one share of A and 4 each of B and C in the beginning of the period
  • when shoudl these be sold to get maximum profit?
  • In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month. In addition to that BASIC is always taught and should be in first month itself WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until COBAL is taught prior to that BINO, FIFO can never be taught in single module Languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO, LOTUS, C
    1. If word star is in 3rd month, what could be in 6th month.
    2. If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be taught in which month.
  • In a class, except 18 all are above 50 years. 15 are below 50 years of age. How many people are there
    1. 30
    2. 33
    3. 36
    4. none of these.
  • Ans (d) .
  • A square plate of some size is cut at four corners. Equal squares of the same size are cut and is formed as open box. If this open box carries 128 ml of oil. What is the size of the side of the plate?
    1. 17
    2. 14
    3. 13
    4. None of these
  • In a square, all the mid points are joined. The inner square is shaded. If the area of the square is A, what is the area of the shaded area?
  • Two questions on basic angles i.e.. . given a circle, a few chords or diameter is drawn etc.
  • If the follwoing statements are given at (a, b) = (a + b) /2/ (a, b) = a/b ⚹ (a, b) = ab If a = 1, b = 2 then find
    1. (a (@ (a, b) , ⚹ (a, b) ) )
    2. (a, @ (⚹ (a, b) ) )
  • If the follwoing statements are given (x#y) = x + y-xy (x ⚹ y) = (x + y) /2
    1. Find the values of x, y will satisfy this equation (x#y) # (x ⚹ y) < (x#y)
    2. Find the values of x, y will satisfy this equation (a ⚹ b) # (b ⚹ c) < (a#b) ⚹ (b ⚹ c)
  • Export PS1 results in (PS1 pwd)
    1. primary prompt being your current directory
    2. primary prompt and secondary prompts being the current directory
    3. primary prompt prompt being your home directory
    4. primary prompt and secondary prompts being the home directory
    5. None of the above:
  • If you type in the comman nohup sort employees-list 2-error out & and log off, the next time you log in, the output will be
    1. in a file called list and the error will de typed in a file error out
    2. there will be no file called list or error out
    3. error will be logged in a file called list and o/p will be in error out
    4. you will not be allowed to log in
    5. none of the above
  • In UNIX a files i-node ________? Ans. Is a data structure that defines all specifications of a file like the file size, number of lines to a file, permissions etc.
  • The UNIX shell ________
    1. does not come with the rest of the system
    2. forms the interface between the user and the kernal
    3. does not give any scope for programming
    4. deos not allow calling one program from with in another
    5. all of the above
  • Ans (b) .
  • enum number {a =-1, b = 4, c, d, e} What is the value of e?
    1. 7
    2. 4
    3. 5
    4. 15
    5. 3
  • The very first process created by the kernal that runs till the kernal process is halts is
    1. init
    2. getty
    3. both (a) and (b)
    4. none of these
  • Ans (a) .
  • Output of the following program is main () {int i = 0; for (i = 0; i < 20; i ++) {switch (i) case 0: i += 5; case 1: i += 2; case 5: i += 5; default i += 4; break;} printf ( “% d,” i) ;}
    1. 013,17
    2. 5, 9, 5,9, 13,17
    3. 12,17, 22
    4. 16,21
    5. Syntax Error
  • Ans (d) .
  • What is the ouptut in the following program main () {char c =-64; int i =-32 unsigned int u =-16; if (c-i) {printf ( “pass1,” ) } }
  • In the process table entry for the kernel process, the process id value is
    1. 0
    2. 1
    3. 2
    4. 255
    5. it does not have a process table entry
  • Ans (a) .
  • Which of the following API is used to hide a window
    1. ShowWindow
    2. EnableWindow
    3. MoveWindow
    4. SetWindowPlacement
    5. None of the above
  • Ans (a) .
  • What will the following program do? void main () {int i; char a [] = “String” char ⚹ p = “New Sring” char ⚹ Temp; Temp = a; a = malloc (strlen (p) + 1) ; strcpy (a, p) ; //Line number: 9//p = malloc (strlen (Temp) + 1) ; strcpy (p, Temp) ; printf ( “ (% s, % s) ” a, p) ; free (p) ; free (a) ;} //Line number 15//
    1. Swap contents of p & a and print: (New string, string)
    2. Generate compilation error in line number 8
    3. Generate compilation error in line number 5
    4. Generate compilation error in line number 7
    5. Generate compilation error in line number 1
  • Ans (b) .
  • In the following code segment what will be the result of the function, value of x, value of y {unsigned int x =-1; int y; y = ~0; if (x == y) printf ( “same” ) ; else printf ( “not same” ) ;}
    1. same, MAXINT, 1
    2. not same, MAXINT, MAXINT
    3. same, MAXUNIT, 1
    4. same, MAXUNIT, MAXUNIT
    5. not same, MAXINT, MAXUNIT
  • Ans (a) .
  • PATH = /bin: /usr: /yourhome The file/bin/calender has the following line in it cal 10 1997The file/yourhome/calender has the following line in it cal 5 1997 If the current directory is/yourhome and calender is executed
    1. The calendar for May 1997 will be printed on screen
    2. The calendar for Oct 1997 will be printed on screen
    3. The calendar for the current month (whatever it is) will be printed
    4. Nothing will get printed on screen
    5. An error massage will be printed
  • What will be the result of the following program? char ⚹ gxxx () {static char xxx [1024] return xxx;} main () {char ⚹ g = “string” strcpy (gxxx () , g) ; g = gxxx () ; strcpy (g, “oldstring” ) ; printf ( “The string is:% s” gxxx () ) ;}
    1. The string is: String
    2. The string is: Oldstring
    3. Run time error/Core dump
    4. Syntax Error during compilation
    5. None of these
  • Ans (b) .
  • What will be result of the following program? void myalloc (char ⚹ x, int n) {x = (char ⚹) malloc (n ⚹ sizeof (char) ) ; memset (x, ⧵0, n ⚹ sizeof (char) ) ;} main () {char ⚹ g = “String” myalloc (g, 20) ; strcpy (g, “Oldstring” ) ; printf ( “The string is % s” g) ;}
    1. The string is: String
    2. Run time error/Core dump
    3. The string is: Oldstring
    4. Syntax Error during compilation
    5. None of these
  • Which of the following function is used to repaint a window immediately
    1. Sendmessage (hWnd, WM_PAINt, ________)
    2. InvalidateRect (________)
    3. MoveWindow
    4. WM_COPY
    5. None
  • Which function is the entry point for a DLL in MS Windows 3.1
    1. Main
    2. Winmain
    3. Dllmain
    4. Libmain
    5. None
  • Ans (b) .
  • The standard source for standard input, standard output and standard error is
    1. the terminal
    2. /dev/null
    3. /usr/you/input, /usr/you/output/, /usr/you/error respectively
    4. None
  • Ans (a) .
  • What will be the result of the following program? main () {char p [] = “String” int x = 0; if (p == “String” ) {printf ( “Pass 1” ) ; if (p [sizeof (p) -2] == ‘g’ ) printf ( “Pass 2” ) ; else printf ( “Fail 2” ) ;} else {printf ( “Fail 1” ) ; if (p [sizeof (p) -2] == ‘g’ ) printf ( “Pass 2” ) ; else printf ( “Fail 2” ) ;} }
    1. Pass 1, Pass 2
    2. Fail 1, Fail 2
    3. Pass 1, Fail 2
    4. Fail 1, Pass 2
    5. syntax error during compilation
  • Which of the choices is true for the mentioned declaration? const char ⚹ p; and char ⚹ const p
    1. You can՚t change the character in both
    2. First: You can՚t change the characterr & Second: You can; t change the pointer
    3. You can՚t change the pointer in both
    4. First: You can՚t change the pointer & Second: You can՚t chanage the character
    5. None
  • The redirection operators-and--
    1. do the same function
    2. differ: overwrites, while--appends
    3. differ: is used for input while--is used for output
    4. differ: write to any file while--write only to standard output
    5. None of these
  • Ans (b) .
  • The command grep first second third/usr/you/myfile
    1. prints lines containing the words first, second or third from the file/usr/you/myfile
    2. searches for lines containing the pattern first in the files second, third, and/usr/you/myfile and prints them
    3. searches the files/usr/you/myfiel and third for lines containing the words first or second and prints them
    4. replaces the word first with the word second in the files third and/usr/you/myfile
    5. None of the above

Ans (b) .