Follow Quotesrain
  • 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
  • /
  • Sapient

Sapient Placement Papers with Solution

Sapient Select Another Category Select Another Topic

Company

  • 3i-Infotech 345
  • Accenture 547
  • 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 9108
  • Tech Mahindra 500
  • Wipro 1182

Sapient Question Topics

    Programming (44)

  • Basics (1)
  • Database (1)
Keep an EYE (0)
Solved Question (0) UnSolved Question (44)
Pages: 512345NextLast
Advertisements

(#M40158147) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Identify the correct inference from this piece of code:

public void onClick(View v){
new Runnable(){
public void run(){
Bitmap b = loadImageFromNetwork();
mImageView.setImageBitmap(b);

}
}).start():}

1) Here ImageView is manipulated on a worker thead which can cause really weird problems. Tracking down and fixing such bugs can be difficult and time consuming.

2) Here ImageView is manipulated on main thread. which is efficient & less time consuming.

3) Here ImageView is manipulated on main thread, which is asynchronous but time consuming.

4) Here ImageView is manipulated on a main thread, but this can cause weird problems. Tracking down and fixing such bugs can be difficult and time consuming.

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (4)   (1) Submit Your Solution Basics

(#M40158146) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Answer the statements which are correct about Handler class

A. A handler object registers itself with the thread in which it is created.
B. The data which can be posted via the Handler class cannot be an instance of the Message or the Runnable class.
C. A Handler is particulary useful if you want to post data multiple times to the main thread

1) A and B
2) B and C
3) C and A
4) All of the given options

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (3) Submit Your Solution
Advertisements

(#M40158145) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

The following syntax is used to implement loader class in Android getLoaderManager().initLoader(0,null,this);

Which of the following is correct about parameters taken by initLoader method?

1) first parameter: Unique Id
second parameter: A Bundle
third parameter: Callback class

2) first parameter: Unique Id
second parameter: CallBack class
third parameter: A bundle

3) first parameter: Callback class
second parameter: Unique id
third parameter: A bundle

4) None of the given options

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (1) Submit Your Solution

(#M40158144) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Alice is writing a listview and she wants the content of each textview to fit pertectly in all types of Android Devices.
What approch should Alice take to achieve this?

A. Alice should use wrap_content for width and height of textview.
B. Alice should use dp values for width and height of textview.
C. If textview has a background image. Alice should make sure that it is a nine-patch image.

1) Only A
2) Only B
3) Only C
4) A and C

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (2)   (2) Submit Your Solution

(#M40158143) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

In Android you may find string.xml file in /X/values directory. What is X?

1) Styles
2) XML
3) Res
4) Layout

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (2) Submit Your Solution

(#M40158142) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Bob is a software engineer and works of the Government of India. The government asks him to design a small ATM printing application. Which can generate multiple types of statements of the transcation including Mini statement. Detailed statement with minimized memory consumption. How would Bob accomplish this?

1) Bob would use Factory design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.

2) Bob would use Material design pattern to generate multiple types of statements and Singleton design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.

3) Bob would use Singleton design pattern to generate multiple types of statements and Factory design pattern for reducing memory consumption by creating a single instance of the StatementFactory class.

4) None of the given options

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (0)   (1) Submit Your Solution

(#M40158141) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Bob figured out that in his Java applications only one runtime enviroment is possible and that is actually true
Bob would like to make Runtime class a _______

1) Singleton class
2) Abstract class
3) Static classs
4) Final class

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (2)
Is this Puzzle helpful?   (1)   (2) Submit Your Solution

(#M40158140) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

In Which of the following situations is it best to use Singleton?

1) If an object has READ_ONLY state (all attributes are final)

2) If an obejct does not have any state (say, no attributes, only methods)

3) If an object has shared state (attributes are present, but those are modified by many of the other objects)

4) All of the given options

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (1)   (0) Submit Your Solution

(#M40158139) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

Which of the following sequences of Fragment lifecycle methods is correct?

1) onAttach() --> onStart() --> onCreate() --> onCreateView() --> onActivityCreated() --> onResume()

2) onAttach() --> onCreate() --> onStart() --> onCreateView() --> onActivityCreated() --> onResume()

3) OnAttach() --> onCreate() --> onCreateView() --> onActivityCreated() --> onStart() --> onResume()

4) onAttach() -->onStart() --> onCreate() --> onActivityCreated() --> onCreatedView() --> onResumse()

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution

(#M40158138) SAPIENT QUESTION Android Keep an EYE Keep an eye puzzle Keep an eye puzzle

To create a fragment, which of the following options holds true?

1) Extend android.app.Fragment class
and create using code snippet below
public class Fragment_Name extends Fragment{
.....

2) Extend android.app.FragmentClass class
and create using code snippet below:
public class Fragment_Name extends Fragment{
....

3) Extend android.app.Fragment class
and create using code snippet below:
public class Fragment_Name extends FragmentClass{
....

4) None of the given options

Asked In Sapient Ashish (6 years ago)
Unsolved Read Solution (1)
Is this Puzzle helpful?   (0)   (0) Submit Your Solution
Keep an EYE (0)
Solved Question (0) UnSolved Question (44)
Pages: 512345NextLast
  • Login
  • Register

Resend

Sponsored Links

Advertisements

Challenger of the Day

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

Maths Quotes

As for everything else, so for a mathematical theory: beauty can be perceived but not explained.

Arthur Cayley

If Mathematics is the ocean, Statistics is the largest island in it. (Nishat Ahmad)

NISHAT AHMAD RATHER

Placed User Comments

M4Math helped me a lot.

Vipul Chavan 2 years ago

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

yash mittal 3 years ago
  • 2475K+Registerd user
  • 1733K+Engineers
  • 742K+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