Sapient Company Programming

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

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

Read Solution (Total 2)

Sapient Other Question

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
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