• Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • English APP
  • login
  • Result
  • Today's Puzzle
    • Previous Puzzles
    • Prize & Rules
  • Discussion Board
    • Suggestion Board
    • Trending Articles
  • Maths Tricks
  • Placement Papers
    • Placement Questions
    • Interview Experience
    • Placed user Comment
    • Group Discussion
  • Walkins
    • Corporate Job Exam
    • Government Job Exam
    • Entrance Exam
  • Training
    • Internship
  • Placement Questions

Placement Papers with Solutions

Company

  • 3i-Infotech 345
  • Accenture 548
  • ADITI 81
  • Athenahealth 72
  • CADENCE 37
  • Capgemini 519
  • CMC 49
  • Cognizant 29
  • CSC 480
  • CTS 1340
  • Dell 49
  • Elitmus 44
  • GENPACT 516
  • Google 55
  • HCL 217
  • Hexaware 92
  • Huawei 81
  • IBM 1714
  • IGate 169
  • Infosys 2050
  • L&T 299
  • Microsoft 61
  • Miscellaneous 204
  • Oracle 74
  • Other 95
  • Patni 199
  • Sapient 44
  • Sasken 31
  • Self 38
  • Syntel 530
  • TCS 9109
  • Tech Mahindra 500
  • Wipro 1182

Exam

  • ACIO 119
  • AIEEE 334
  • AMCAT 2636
  • Assessment 108
  • Bank 22
  • CAT 988
  • CMAT 82
  • Cocubes 39
  • Elitmus 2952
  • Exam 39
  • Gate 846
  • GMAT 107
  • Gmate 29
  • GRE 469
  • IIT-JEE 471
  • ITC 28
  • Maths Olympiad 205
  • MBA 3481
  • MCA 32
  • Other 159
  • Others 25
  • R-SAT 111
  • Self 68

Government Jobs Exams

  • Bank Exam 478
  • CDS 57
  • CTET 21
  • IBPS 1258
  • IES EC 44
  • KVPY 364
  • NDA 481
  • NTSE 36
  • REVENUE OFFICE 53
  • RRB 1029
  • SSC 1294
  • UPSC 441

Interview

  • HR Interview 426
  • HR Round 41

Maths Puzzle

  • A website 299
  • Book 23779
  • Campus 250
  • CMAT 49
  • Exam 86152
  • General 399
  • Interview 141
  • M4maths 295
  • Maths 226
  • Orkut 27
  • Other 72
  • Others 1356
  • Reasoning 101
  • Self 3157

Programming and Technical

  • Android 118
  • ASP.NET 60
  • C 459
  • C++ 448
  • DATA STRUCTURE 66
  • DBMS 77
  • ELECTRONICS 39
  • Java 261
  • OOPs Concepts 117
  • Operating Syst 103
  • RDBMS 109
  • UNIX 70
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 15999FirstPrev12878128791288012881128821288312884128851288612887NextLast
Advertisements

(#M40032018) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Vikram wants to write a program which checks whether the inputted number is divisible by any of the first 6 natural

numbers (excluding 1). He writes the following efficient code for it.

int number, n = 2, isdivisible=0
input number
while ( n <=6) // Statement 1
{
if ( remainder (number, n) == 0)
isdivisible = 1
end
n = n+1 // Statement 2
}
if (isdivisible equals 1)
print "It is divisible"
else
print "It is not divisible"
end

Vikram takes the program to Hari. Hari tells Vikram that though the code is correct, it can be made more efficient. Hari

modifies a single statement and makes the code more efficient. Which statement does he modify and how?

Option 1 : Statement 1 is changed to:
while (n <=6 AND isdivisible=0)
Option 2 : Statement 1 is changed to:
while (n <=6 OR isdivisible=0)
Option 3 : Statement 1 is changed to:
while (isdivisible=0)
Option 4 : Statement 2 is changed to:
n = n + 2

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (8)
Is this Puzzle helpful?   (6)   (0) Submit Your Solution Program

(#M40032017) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
A company offers commission for selling it products to its salesperson. The commission rate is Rs. 5 per product.

However if the salesperson sells more than 200 items, he gets a commission of Rs. 10 on all items he sold after the first

200. Kanu writes a program to calculate the commission for the salesperson:

integer numberProducts, commission
input numberProducts

if ( numberProducts > 200 )
-- MISSING STATEMENT --
else
commission = numberProducts * 5
end if
print commission

Fill in the missing statement.

Option 1 : commission = (numberProducts - 200) * 10
Option 2 : commission = 200 * 5 + (numberProducts - 200) * 10
Option 3 : commission = numberProducts * 10
Option 4 : None of these

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (29)   (28) Submit Your Solution Technical
Advertisements

(#M40032016) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Lavanya wants to find the smallest number out of 26 inputted numbers. How many minimum comparisons he has to

make?

Option 1 : 25
Option 2 : 13
Option 3 : 26
Option 4 : 52

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (9)
Is this Puzzle helpful?   (27)   (13) Submit Your Solution Technical

(#M40032015) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Abhinav wants to find the largest number in a given list of 20 numbers. Which of the following is an efficient approach

to do this?

Option 1 : Use bubble sort to sort the list in descending order and then print the first number of the series.
Option 2 : Use selection sort to sort the list in descending order and then print the first number of the series.
Option 3 : Implement one iteration of selection sort for descending order and print the first number in the series.
Option 4 : None of these

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (6)
Is this Puzzle helpful?   (7)   (9) Submit Your Solution Technical

(#M40032014) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Rohan writes the following program which inputs a number and prints "Triple digit" if the number is composed of three

digits and "Not triple digit" if it is not.

int number;
if (number>99)
print "Triple digit"
else
print "Not triple digit"
end if

Rohan tries the following inputs: 25 and 566. The program works fine. He asks his brother Ravi to try the program.

When Ravi enters a number, the program doesn't work correctly. What did Ravi enter?

Option 1 : 99
Option 2 : 100
Option 3 : 0
Option 4 : 1000

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (8)   (5) Submit Your Solution Technical

(#M40032013) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Rohit writes the following program which inputs a number and prints "Double digit" if the number is composed of two

digits and "Not a double digit" if it is not.

int number;
if (number>10 AND number < 100)
print "Double digit"
else
print "Not a double digit"
end if

Rohit tries the following inputs: 5 and 66. The program works fine. He asks his brother Ravi to try the program. When

Ravi enters a number, the program doesn't work correctly. What did Ravi enter?

Option 1 : 8
Option 2 : 100
Option 3 : 99
Option 4 : 10

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (5)
Is this Puzzle helpful?   (18)   (8) Submit Your Solution Program

(#M40032012) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Shalini wants to program to print the largest number out of three inputted numbers. She writes the following program:

int number1, number 2, number3, temp;
input number1, number2, number3;
if (number1>number2)
temp = number1
else
temp = number2
end if
if (??) // Statement 1
temp = number3
end if
print temp

Fill in the ?? in Statement 1

Option 1 : number3 > number2
Option 2 : number3 > temp
Option 3 : number3 < temp
Option 4 : number3 > number1

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (10)
Is this Puzzle helpful?   (20)   (8) Submit Your Solution Program

(#M40032011) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Himanshu wants to write a program to print the larger of the two inputted number. He writes the following code:

int number1, number 2
input number1, number 2
if ("??") // Statement 1
print number1
else
print number2
end if
Fill in the ?? in statement 1.

Option 1 : number1>number2
Option 2 : number2>number1
Option 3 : number2 equals number1
Option 4 : number1 <= number2

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (5)   (2) Submit Your Solution

(#M40032010) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Charu writes the following program:

integer i = 1, j, a
while ( i <= 4 )
{
j = 1;
a = 0;
while ( a <= 5*i )
{
a = 2^j;
print a
print blank space
j = j + 1
}
print end-of-line takes the cursor to the next line
i = i + 1
}

What will be the output of the program?

Option 1 :
2
2 4
2 4 8
2 4 8 16
Option 2 :
2 4
2 4 8
2 4 8 16
2 4 8 16 32
Option 3 :
2 4
2 4 8
2 4 8
2 4 8 16
Option 4 :
2
2 4
2 4
2 4 8 16

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (21)
Is this Puzzle helpful?   (5)   (7) Submit Your Solution Technical

(#M40032009) AMCAT QUESTION Keep an EYE Keep an eye puzzle Keep an eye puzzle

Que: Choose the correct answer
Shravanti writes the following program:

integer i = 0, j
while ( i < 2 )
{
j = 0;
while ( j <= 3*i )
{
print j
print blank space
j = j + 3
}
print end-of-line takes the cursor to the next line
i = i + 1
}

What will be the output of the program?

Option 1 :
0
0 3
Option 2 :
0 3
0 3 6
Option 3 :
0
0 3 6
0 3 6 9
Option 4 :
0 3 6
0 3 6 9
0 3 6 9 12

Asked In AMCAT Aashu (11 years ago)
Unsolved Read Solution (12)
Is this Puzzle helpful?   (19)   (11) Submit Your Solution Program
Keep an EYE (0)Interview Experience (261)
Solved Question (6040) UnSolved Question (153944)
Pages: 15999FirstPrev12878128791288012881128821288312884128851288612887NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

no image
Dimple
India
Punjab
Time: 00:01:33
Points
19

Maths Quotes

The pulse of the earth is mathematics

Hithesh

There is no Royal Road to Geometry

Euclid

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 5 years ago

Thanks m4 maths for helping to get placed in several companies.
I must recommend this website for placement preparations.

yash mittal 5 years ago

Now enjoy Offline Access of latest Question.

Get M4maths app to avail expert's solution and latest selected questions.

Download m4maths app now

  • 2533K+Registerd user
  • 1774K+Engineers
  • 759K+MBA Asprirant
  • 3K+Enginnering College
  • 250+Company Exam
  • 150K+Interview Questions
  • Site Links
  • Home
  • Result
  • Today's Puzzle
  • Discussion Board
  • Maths Tricks
  • Advertise with us
  • Contact Us
  • Useful Info
  • Maths Quotes
  • Previous Puzzles
  • Prize
  • Privacy Policy
  • Disclaimer and Copyright
  • Terms and Conditions
  • Sitemap
  • Placement papers
  • TCS Placement Paper
  • HCL Placement Paper
  • INFOSYS Placement Paper
  • IBM Placement Paper
  • SYNTEL Placement Paper
  • TECHNICAL Interview
  • HR Interview
All rights are reserved to @m4maths.com