What is the most common file type of media supported for audio playback on the Android?
a. midi
b. mp3
c. ogg
d. wav
Answer: b. mp...
What is the first GridView control in a project named by default?
What is the first GridView control in a project named by default?
a. control1
b. defaultGallery
c. gridView1
d. theGallery
Answer: c....
What is the TextView property for backgrounds?
What is the TextView property for backgrounds?
a. graphic
b. background
c. picture
d. image
Answer: b. backgroun...
What invokes a scheduled Timer?
What invokes a scheduled Timer?
a. AbstractTask
b. ScheduledTask
c. Task
d. TimerTask
Answer: d. TimerTas...
What does the splash screen provide time for Android to do?
What does the splash screen provide time for Android to do?
a. bootstrap the phone driver
b. download updates
c. initialize resources for your...
What category of the Palette does the control GridView sit in?
What category of the Palette does the control GridView sit in?
a. Images category
b. Composite category
c. Media category
d. Viewing category
Answer: b....
What can be described as the series of actions from the beginning of an Activity to its end?
What can be described as the series of actions from the beginning of an Activity to its end?
a. life cycle
b. flow chart
c. run time
d. execution period
Answer: a....
Using controls such as the GridView and Spinner, what binds specific types of data and displays that data in a particular layout?
Using controls such as the GridView and Spinner, what binds specific types of data and displays that data in a particular layout?
a. adapter
b. context
c....
On an Android, what are 1000 milliseconds equivalent to in seconds?
On an Android, what are 1000 milliseconds equivalent to in seconds?
a. 0.1 seconds
b. 1 second
c. 10 seconds
d. 100 seconds
Answer: b. 1 se...
Each of the following is a common state for the MediaPlayer class except for which one?
Each of the following is a common state for the MediaPlayer class except for which one?
a. continue()
b. pause()
c. start()
d. stop()
Answer: a....
What is printed to the console after the code that follows is executed?
What is printed to the console after the code that follows is executed?
int[][] types = new int[4][];
for (int i = 0; i < types.length; i++)
{
types[i]...
What happens when the code that follows is executed?
What happens when the code that follows is executed?
int[] nums = new int[4];
for (int i = 0; i <= nums.length; i++)
{
nums[i] = i;
}
System.out.println(nums[2]);
a....
To use the binarySearch method of the Arrays class on an array of ints, you must first
To use the binarySearch method of the Arrays class on an array of ints, you must first
a. implement the Comparable interface
b. sort the array
c. override...
The length of the array that follows is int[] grades = new int[4];
The length of the array that follows isint[] grades = new int[4];
a. 0
b. 3
c. 5
d. 4
Answer: d. ...
The array that follows is an array of double[] grades = new double[3];
The array that follows is an array ofdouble[] grades = new double[3];
a. objects
b. arrays
c. grades
d. doubles
Answer: d. double...
How many rows are in the array that follows? Rental[][] transactions = new Rental[7][3];
How many rows are in the array that follows?Rental[][] transactions = new Rental[7][3];
a. 7
b. 3
c. 2
d. 6
Answer: a....
What is the length of the bestTimes array?
double[] times = {3.56, 3.9, 2.6, 4.5, 2.4, 5.2};
double[] bestTimes = new double[4];
Arrays.sort(times);
bestTimes = Arrays.copyOfRange(times, 1, 4);
What...
An enhanced for loop can only be used
An enhanced for loop can only be used
a. to work with one-dimensional arrays
b. to work with all the elements of an array
c. to work with jagged arrays
d....
Which of the following is not a reason to create a package?
Which of the following is not a reason to create a package?
a. To group related classes
b. To make finding classes easier
c. To make it easy to reuse...
Which of the following is a valid Javadoc comment?
Which of the following is a valid Javadoc comment?
a. // Calculates the balance due //
b. / Calculates the balance due */
c. /* Calculates the balance...
Which of the following is a benefit of using Javadoc comments?
Which of the following is a benefit of using Javadoc comments?
a. They show other programmers how to code a class.
b. They make it easy for other programmers...
Where must you code the Javadoc comment for a method?
Where must you code the Javadoc comment for a method?
a. Immediately before the method
b. After any statements in the method
c. Before any statements...
To include a class in a package, you
To include a class in a package, you
a. code an import statement as the first statement of the class
b. code a package statement as the first statement...
In what type of file is Javadoc documentation stored?
In what type of file is Javadoc documentation stored?
a. txt file
b. class file
c. html file
d. java file
Answer: c. html fil...
A subclass inherits
A subclass inherits
a. protected data only
b. public, private, and protected data
c. public and private data
d. public and protected data
Answer: d....
A class in the Java API
A class in the Java API
a. can be both a superclass and a subclass
b. can be inherited only by other classes in the Java API
c. can have only one subclass
d....
A static initialization block
A static initialization block
a. is used to initialize a static variable that can't be initialized in the declaration
b. is executed when a static...
____ are programs that perform operations such as copying files, listing directories, and communicating with other users.
____ are programs that perform operations such as copying files, listing directories, and communicating with other users.
Extents
Utilities
Applic...
You use the ____ command to display a directory's contents, including files and other directories.
You use the ____ command to display a directory's contents, including files and other directories.
dir
d
pwd
ls
Answer: l...
You can create a ____ partition to hold files that are created temporarily, such as files used for printing documents (spool files) and files used to record monitoring and administration data, often called log files.
You can create a ____ partition to hold files that are created temporarily, such as files used for printing documents (spool files) and files used to...
You can change the pattern of permission settings by using the ____ command.
You can change the pattern of permission settings by using the ____ command.
chperm
chmod
chsec
chown
Answer: chmo...
When using the mount command, you use the ____ option to specify a file system to mount.
When using the mount command, you use the ____ option to specify a file system to mount.
-f
-d
-t
-m
Answer: -...
UNIX/Linux systems interpret ____ to mean the parent directory.
UNIX/Linux systems interpret ____ to mean the parent directory.
dot (.)
dot (..)
backward slash (\)
forward slash (/)
Answer: dot (.....
To navigate the UNIX/Linux directory structure, you use the ____ command.
To navigate the UNIX/Linux directory structure, you use the ____ command.
nav
cd
mv
jump
Answer: c...
The term ____ refers to a "black hole"; any data sent to this device is gone forever.
The term ____ refers to a "black hole"; any data sent to this device is gone forever.
void
root
null
console
Answer: nul...
The root of a file system is denoted by the ____.
The root of a file system is denoted by the ____.
dot (.)
dot dot (..)
forward slash (/)
backward slash (\)
Answer: forward slash (/...
The ____ partition acts as an extension of memory so that UNIX/Linux has more room to run large programs.
The ____ partition acts as an extension of memory so that UNIX/Linux has more room to run large programs.
backup
primary
virtual
swap
Answer:&nb...
The ____ is shorthand for the home directory, which typically has the same name as the user's account name.
The ____ is shorthand for the home directory, which typically has the same name as the user's account name.
backward slash (\)
forward slash (/)
dollar...
The ____ directory contains the kernel (operating system) images.
The ____ directory contains the kernel (operating system) images.
/boot
/bin
/dev
/etc
Answer: /boo...
The ____ directory contains executables, which are the programs needed to start the system and perform other essential system tasks.
The ____ directory contains executables, which are the programs needed to start the system and perform other essential system tasks.
/boot
/bin
/d...
The ____ directory contains configuration files that the system uses when the computer starts.
The ____ directory contains configuration files that the system uses when the computer starts.
/boot
/bin
/dev
/etc
Answer: /et...
The ____ command is used to create a new directory.
The ____ command is used to create a new directory.
cdir
cd
mkdir
mk
Answer: mkdi...
The UNIX file system (ufs) supports ____, which automatically move data on damaged portions of disks to areas that are not damaged.
The UNIX file system (ufs) supports ____, which automatically move data on damaged portions of disks to areas that are not damaged.
hot fixes
backups
recovery...
In Linux, the native file system is the ____, which is installed by default.
In Linux, the native file system is the ____, which is installed by default.
ufs
ext fs
ReiserFS
jfs
Answer: ext f...
If you plan to have multiple users access a system, you can create a ____ partition, which is the home directory for all users' directories.
If you plan to have multiple users access a system, you can create a ____ partition, which is the home directory for all users' directories.
/root...
If you have configured your prompt so that it does not show your working directory, you can use the ____ command to verify in what directory you are located, along with the directory path.
If you have configured your prompt so that it does not show your working directory, you can use the ____ command to verify in what directory you are...
A(n) ____ path begins at the root level and lists all subdirectories to the destination file.
A(n) ____ path begins at the root level and lists all subdirectories to the destination file.
root
primary
absolute
relative
Answer: absolu...
A(n) ____ is used to reduce file fragmentation because a block of contiguous disk storage can be reserved for a file.
A(n) ____ is used to reduce file fragmentation because a block of contiguous disk storage can be reserved for a file.
partition
node
journal
exten...
The goal of testing is to
The goal of testing is to
a. make sure the application works with invalid data
b. fix all errors in the application
c. make sure the application works...
An error that occurs after an application is running is known as a
An error that occurs after an application is running is known as a
a. logic error
b. runtime error
c. syntax error
d. user error
Answer: b....
An error that lets the application run but produces the wrong results is known as a
An error that lets the application run but produces the wrong results is known as a
a. logic error
b. syntax error
c. user error
d. runtime error
Answer: a....
____ is an Internet terminal emulation program.
____ is an Internet terminal emulation program.
IP
Emulab
Telnet
Terminal
Answer: Telne...
You can use the ____ command to show the system calendar.
You can use the ____ command to show the system calendar.
clndr
syscal
cal
calendar
Answer: ca...
You can type more than one command on the command line by separating commands with a ____.
You can type more than one command on the command line by separating commands with a ____.
vertical bar (|)
colon (:)
semicolon (;)
dash (-)
Answer: semicolon...
You can change your password, if necessary, by using the ____ command, but you must know your current password to change it.
You can change your password, if necessary, by using the ____ command, but you must know your current password to change it.
pwd
chpwd
passwd
pass...
UNIX/Linux is ____ systems, which let many people simultaneously access and share the resources of a server computer.
UNIX/Linux is ____ systems, which let many people simultaneously access and share the resources of a server computer.
superuser
peer-to-peer
multi...
UNIX and Linux are ____ systems, which allow one user to execute more than one program at a time.
UNIX and Linux are ____ systems, which allow one user to execute more than one program at a time.
server-based
peer-to-peer
multitasking
multiuser...
To log out of UNIX/Linux (Bourne, Korn, or Bash shells) you can enter exit on the command line or press ____.
To log out of UNIX/Linux (Bourne, Korn, or Bash shells) you can enter exit on the command line or press ____.
Ctrl+l
Ctrl+g
Ctrl+x
Ctrl+d
Answer...
To determine information about who is logged in, you can use the ____ command.
To determine information about who is logged in, you can use the ____ command.
whatis
who
whois
whoami
Answer: wh...
To append output to an existing file, you use ____.
To append output to an existing file, you use ____.
>
>>
<
<<
Answer: >>...
The head and tail commands, allow you to view the first few or last few lines of a file (____ lines by default).
The head and tail commands, allow you to view the first few or last few lines of a file (____ lines by default).
five
ten
fifteen
twenty
Answer:...
The ____ is the prompt symbol traditionally associated with ordinary users.
The ____ is the prompt symbol traditionally associated with ordinary users.
dollar sign ($)
pound sign (#)
tilde (~)
percent sign (%)
Answer: dollar...
The UNIX/Linux ____ command displays the system date, which the system administrator maintains.
The UNIX/Linux ____ command displays the system date, which the system administrator maintains.
today
sysdate
system
date
Answer: dat...
Stephen Bourne at AT&T Bell Labs developed the ____ shell as the first UNIX command processor.
Stephen Bourne at AT&T Bell Labs developed the ____ shell as the first UNIX command processor.
Bash
Bourne
C
Korn
Answer: Bourn...
Linux uses the freeware ____ shell as its default command interpreter.
Linux uses the freeware ____ shell as its default command interpreter.
Bash
Bourne
C
Korn
Answer: Bas...
In the Linux Bash shell, the ____ key combination moves the cursor to the previous letter.
In the Linux Bash shell, the ____ key combination moves the cursor to the previous letter.
Ctrl+b
Alt+d
Alt+l
Ctrl+a
Answer: Ctrl+...
In the Linux Bash shell, the ____ key combination moves the cursor to the position just before the first character of the next word.
In the Linux Bash shell, the ____ key combination moves the cursor to the position just before the first character of the next word.
Alt+l
Alt+d
C...
In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line.
In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line.
Ctrl+b
Alt+d
Alt+l
Ctrl+a
Answer: ...
In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command line.
In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command...
Fedora, Red Hat Enterprise Linux, SUSE, and Knoppix recognize up to ____ characters in your user name.
Fedora, Red Hat Enterprise Linux, SUSE, and Knoppix recognize up to ____ characters in your user name.
8
16
32
64
Answer: 3...
What happens in the method that follows when s is "two"?
What happens in the method that follows when s is "two"?
public double parseInterval(String s)
{
double interval = 0.0;
try
{
interval = Double.parseDouble(s);
}
catch(NumberFormatException...
What is the order of method calls?
What is the order of method calls?
a. FutureValueApp.main calls java.util.Scanner.nextDouble calls java.util.Scanner.next calls java.util.Scanner.throwFor
b....
What is this output called?
What is this output called?
a. a method log
b. a stack trace
c. an exception handler
d. an exception hierarchy
Answer: a stack trace
Output...
Consider the code that follows. What does it do?
Consider the code that follows. What does it do?
String value = "2";
boolean tryAgain = true;
while (tryAgain == true)
{
try
{
int num = Integer.parseInt(value);
tryAgain...
If the user enters 118 at the console prompt, what is the third line of the resulting console display?
import java.util.Scanner;
import java.text.NumberFormat;
public class WeightConverter
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String...
If the user enters -1 at the first console prompt, what does the code do?
import java.util.Scanner;
import java.text.NumberFormat;
public class WeightConverter
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String...
If the user enters "two hundred" at the console prompt, what does the code do?
import java.util.Scanner;
import java.text.NumberFormat;
public class WeightConverter
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
String...
Which of the following classes define exceptions that can occur in a Java application?
Which of the following classes define exceptions that can occur in a Java application?
a. ArithmeticException
b. NumberFormatException
c. NullPointerException
d....
Which class in the following list of classes are all exceptions subclasses of?
Which class in the following list of classes are all exceptions subclasses of?
a. Error
b. Throwable
c. Exception
d. RuntimeException
Answer:&nb...
When is the code within a catch block executed?
When is the code within a catch block executed?
a. When the exception specified in the catch block is thrown in the try block
b. When a runtime error...
What is the main reason for using a generic data validation method?
What is the main reason for using a generic data validation method?
a. It runs faster than the validation code in the main method.
b. It saves you...
To handle an exception using the try statement, you must
To handle an exception using the try statement, you must
a. code a try block around the statement that may throw the exceptions
b. code a finally block...
To determine the cause of an unhandled exception, you can
To determine the cause of an unhandled exception, you can
a. use the name of the exception class that's displayed
b. use the error message that's displayed
c....
In Java, exceptions are
In Java, exceptions are
a. statements
b. classes
c. compile-time errors
d. objects
Answer: object...
In the Linux Bash shell, the next word.
In the Linux Bash shell, the next word.
Alt+l
Alt+d
Ctrl+k
Ctrl+a
Answer: Alt+...
In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line.
In the Linux Bash shell, the ____ key combination moves the cursor to the beginning of the command line.
Ctrl+b
Alt+d
Alt+l
Ctrl+a
Answer: ...
In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command line.
In the Linux Bash shell, the ____ key combination deletes the content of the command line from the current cursor position to the end of the command...
In the Linux Bash shell, the ____ key combination deletes a word or consecutive characters.
In the Linux Bash shell, the ____ key combination deletes a word or consecutive characters.
Ctrl+b
Alt+d
Alt+l
Ctrl+a
Answer: Alt+...
Currently, the ____ project, a joint effort of experts from industry, academia, and government, is working to standardize UNIX.
Currently, the ____ project, a joint effort of experts from industry, academia, and government, is working to standardize UNIX.
POSIX
BSD
ANSI
Ubu...
A ____ is used to refer to the user's home directory.
A ____ is used to refer to the user's home directory.
dot (.)
dollar sign ($)
forward slash (/)
tilde (~)
Answer: tilde (~...
When a statement within a try block causes an exception, the remaining statements in the try block
When a statement within a try block causes an exception, the remaining statements in the try block
a. are executed before the statements in the catch...
Which class in the following list of classes are all exceptions subclasses of?
Which class in the following list of classes are all exceptions subclasses of?
a. Throwable
b. Exception
c. Error
d. RuntimeException
Answer: b....
What is the order of method calls?
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:818)
at java.util.Scanner.next(Scanner.java:1420)
at...
Which statement would you look at to find the source of the problem?
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:818)
at java.util.Scanner.next(Scanner.java:1420)
at...
What caused the exception to occur?
Exception in thread "main" java.util.InputMismatchException
at java.util.Scanner.throwFor(Scanner.java:818)
at java.util.Scanner.next(Scanner.java:1420)
at...
Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:818) at java.util.Scanner.next(Scanner.java:1420) at java.util.Scanner.nextDouble(Scanner.java:2324) at FutureValueApp.main(FutureValueApp.java:17) What is this output called?
Exception in thread "main" java.util.InputMismatchExceptionat java.util.Scanner.throwFor(Scanner.java:818)at java.util.Scanner.next(Scanner.java:1420)at...
You should validate user entries rather than catch and handle exceptions caused by invalid entries whenever possible because
You should validate user entries rather than catch and handle exceptions caused by invalid entries whenever possible because
a. all of the above
b....
Which of the following classes define exceptions that can occur in a Java application?
Which of the following classes define exceptions that can occur in a Java application?
a. ArithmeticException
b. NumberFormatException
c. NullPointerException
d....
To handle an exception using the try statement, you must
To handle an exception using the try statement, you must
a. code a try block around the statement that may throw the exceptions
b. code a finally block...
To determine the cause of an unhandled exception, you can
To determine the cause of an unhandled exception, you can
a. use the name of the exception class that's displayed
b. use the error message that's displayed
c....
The has methods of the Scanner class let you
The has methods of the Scanner class let you
a. check if the user has entered data at the console
b. check if the data entered at the console can be...
Which statement dynamically assigns an image named car in the drawable folder to an ImageView control?
Which statement dynamically assigns an image named car in the drawable folder to an ImageView control?
a. car.setImageResource(R.drawable.image);
b....
Which of the following correctly completes the statement below to instantiate a SharedPreferences object? SharedPreferences sharedPref =
Which of the following correctly completes the statement below to instantiate a SharedPreferences object?SharedPreferences sharedPref =
a. PreferenceManager.getDefaultSharedPreferences(this);
b....
Which type of storage is used if data is saved to an SD card?
Which type of storage is used if data is saved to an SD card?
a. Shared preferences
b. External
c. Internal
d. Network connection
Answer: b....
Which type of file does the SharedPreferences object save data to?
Which type of file does the SharedPreferences object save data to?
a. XML
b. DAT
c. SRC
d. RES
Answer: a. XM...
Which method is used to store integer data in a SharedPreferences object?
Which method is used to store integer data in a SharedPreferences object?
a. placeInt( )
b. saveInteger( )
c. putInt( )
d. storeInteger( )
Answer: c....
Which method is used to retrieve a Boolean value from a SharedPreferences object?
Which method is used to retrieve a Boolean value from a SharedPreferences object?
a. readBool()
b. readBoolean()
c. getBoolean()
d. getBool()
Answer: c....
Which data type is NOT supported by the SharedPreferences class?
Which data type is NOT supported by the SharedPreferences class?
a. string
b. long
c. char
d. float
Answer: c. cha...
Which Android tool can store data that can be used in different Activities of your application or by another application?
Which Android tool can store data that can be used in different Activities of your application or by another application?
a. KeyTool
b. SharedPreferences
c....
When you write data using SharedPreferences, with which SharedPreferences object can you make changes?
When you write data using SharedPreferences, with which SharedPreferences object can you make changes?
a. SharedPreferences Editor
b. SharedPreferences...
What's the first step when writing persistent data using a SharedPreferences file?
What's the first step when writing persistent data using a SharedPreferences file?
a. Create a SharedPreferences.Editor object
b. Obtain an instance...
What is the maximum number of shared preferences you can create?
What is the maximum number of shared preferences you can create?
a. 25 or less
b. It's based on the number of apps.
c. unlimited
d. less than 10
Answer: c....
What is one of the most effective ways to save simple application data to an Android device?
What is one of the most effective ways to save simple application data to an Android device?
a. SQLite database
b. external storage
c. internal storgage
d....
What does the abbreviation SQL stand for?
What does the abbreviation SQL stand for?
a. Structured Quorum List
b. Simple Quorum Language
c. Simple Query List
d. Structured Query Language
Answer: d....
The following permissions are necessary in the Android Manifest file to use which type of storage?
The following permissions are necessary in the Android Manifest file to use which type of storage?
a. indexed
b. external
c. volatile
d. internal
Answer: b....
The SharedPreferences class provides one of the easiest ways to save and load data. Which specific data type does this refer to?
The SharedPreferences class provides one of the easiest ways to save and load data. Which specific data type does this refer to?
a. encrypted data
b....
In an Android project, an ImageView control can display an image by assigning what in the XML layout file?
In an Android project, an ImageView control can display an image by assigning what in the XML layout file?
a. hashtag
b. workspace
c. target grid
d....
In a key-value pair, what is the key that uniquely identifies the preference?
In a key-value pair, what is the key that uniquely identifies the preference?
a. int
b. string
c. Boolean
d. float
Answer: b. strin...
If you have a large amount of data to store as persistent data, which of the following storage methods would be most efficient?
If you have a large amount of data to store as persistent data, which of the following storage methods would be most efficient?
a. network connection
b....
If data is lost when an app or the device stops running where was the data stored?
If data is lost when an app or the device stops running where was the data stored?
a. RAM
b. a memory card
c. the device's driver
d. a cloud service
Answer: a....
If a string value is undefined in a key's value, what is it set to?
If a string value is undefined in a key's value, what is it set to?
a. " "
b. null
c. the number 0
d. *
Answer: b. nul...
If a numeric value is undefined in a key's value, what is it set to?
If a numeric value is undefined in a key's value, what is it set to?
a. null
b. -1
c. 0
d. undefined
Answer: c. ...
How does the Shared preferences option of storing persistent data store private data?
How does the Shared preferences option of storing persistent data store private data?
a. shared external storage
b. key-value pairs
c. private database
d....
For Shared Preferences methods, what does the method return to the application if the preference is undefined?
For Shared Preferences methods, what does the method return to the application if the preference is undefined?
a. "undefined" string
b. error code
c....
Before an app attempts to connect to a network connection, what action should be taken?
Before an app attempts to connect to a network connection, what action should be taken?
a. The app should scan the quality of the network.
b. No action...
After the app is terminated, what happens to the data stored within the SQLite database?
After the app is terminated, what happens to the data stored within the SQLite database?
a. It erases.
b. It pauses.
c. It persists.
d. It is transferred...
Which variable allows you to store multiple values in one variable at the same time?
Which variable allows you to store multiple values in one variable at the same time?
a. array variable
b. list variable
c. index variable
d. temporary...
Which type of control do you use to contain a list of items that allows a user to select an item in the list for further action?
Which type of control do you use to contain a list of items that allows a user to select an item in the list for further action?
a. ArrayView
b. RadioGroup
c....
Which statement in a custom XML layout for a ListView sets the size of the text to 20sp?
Which statement in a custom XML layout for a ListView sets the size of the text to 20sp?
a. android:textSize="20sp"
b. ListView:textSize="20sp"
c....
Which statement allows you to evaluate value and execute a block of statements based on an integer or single character input?
Which statement allows you to evaluate value and execute a block of statements based on an integer or single character input?
a. case statement
b....
Which of the following terms provides a data model for the layout of the list?
Which of the following terms provides a data model for the layout of the list?
a. blueprint
b. skeleton
c. adapter
d. abstraction
Answer: c....
Which of the following is the correct syntax for the beginning of a switch statement that evaluates a variable named choice?
Which of the following is the correct syntax for the beginning of a switch statement that evaluates a variable named choice?
a. case(choice):
b. switch[choice]...
Which of the following controls allows you to create a two-level list?
Which of the following controls allows you to create a two-level list?
a. ExpandableListView control
b. ListView control
c. MajorListView
d. TwoListView...
Which method is called when an item in a list is selected?
Which method is called when an item in a list is selected?
a. onListItemClick
b. itemWasClicked
c. itemClicked
d. clicked
Answer: a. onList...
Which intent action opens a Web browser on the Android?
Which intent action opens a Web browser on the Android?
a. WEB_VIEW
b. ACTION_VIEW
c. BROWSE_VIEW
d. HTTP_VIEW
Answer: b. ACTION_VIE...
Which browser is not supported in Android?
Which browser is not supported in Android?
a. Internet Explorer
b. Firefox
c. Dolphin
d. Opera
Answer: a. Internet Explore...
Which XML code statement places an icon named ic_city.png to the right of the text in a ListView display?
Which XML code statement places an icon named ic_city.png to the right of the text in a ListView display?
a. android:drawableRight="@drawable/ic_city"
b....
Which ListView control provides a two-level list?
Which ListView control provides a two-level list?
a. DoubleListView
b. MultiListView
c. ExpandableListView
d. AdvancedListView
Answer: c. E...
Where is the strings.xml file located?
Where is the strings.xml file located?
a. res/drawable-mdpi folder
b. res/layout folder
c. res/values folder
d. res/drawable-hdpi folder
Answer: c....
When opening a Web site with intent, what is the last argument?
When opening a Web site with intent, what is the last argument?
a. URL
b. string
c. image
d. URI
Answer: d. UR...
When a list item is selected, what part of it is passed to the executing code?
When a list item is selected, what part of it is passed to the executing code?
a. position
b. signature
c. bytecode
d. name
Answer: a. posi...
What statement should you put at the end of a switch statement if you want a block of code to be executed in the event none of the case statement values matches?
What statement should you put at the end of a switch statement if you want a block of code to be executed in the event none of the case statement values...
What should end the block of code in each case statement to prevent the subsequent case statement from being executed as well?
What should end the block of code in each case statement to prevent the subsequent case statement from being executed as well?
a. default;
b. break;
c....
What method projects your data to the onscreen list by connecting a ListView object to array data?
What method projects your data to the onscreen list by connecting a ListView object to array data?
a. setListAdapter method
b. projectArrayAdapter...
What is used so apps can talk to each other in a very simple way?
What is used so apps can talk to each other in a very simple way?
a. activities
b. classes
c. intents
d. values
Answer: c. intent...
What is the generic layout to a simple list?
What is the generic layout to a simple list?
a. simple_list_item_multiple_choice
b. simple_list_item_2
c. simple_list_item_1
d. simple_list_item_checked
Answer: c....
What is the generic layout that displays checkboxes?
What is the generic layout that displays checkboxes?
a. list_item_checked
b. boxed_list_item
c. simple_list_item_checked
d. checked_list_item
Answer: c....
What does the acronym URL stand for?
What does the acronym URL stand for?
a. Uniform Resource Locator
b. Usual Random Lesson
c. Universal Redirection Locale
d. Utility Rendering Logo
Answer: a....
In what is the reference for an array enclosed?
In what is the reference for an array enclosed?
a. < >
b. { }
c. [ ]
d. ( )
Answer: c. [ ...
If the primary purpose of a class is to display a ListView control, which of the following controls is recommended to extend the class from?
If the primary purpose of a class is to display a ListView control, which of the following controls is recommended to extend the class from?
a. SelectionActivity
b....
If a Java View list exceeds the length of the screen, what is done to the list?
If a Java View list exceeds the length of the screen, what is done to the list?
a. the list is truncated
b. the list is shrunk to fit
c. the list is...
Subscribe to:
Posts (Atom)