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...
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:&nbs...
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+...
Write a statement that increments total by the value associated with amount . That is, add the value associated with amount to that associated with total and assign the result to total .
Write a statement that increments total by the value associated with amount . That is, add the value associated with amount to that associated with...
Given a variable profits , write a statement that increases its value by a factor of 10 .
Given a variable profits , write a statement that increases its value by a factor of 10 .
Answer: profits= profits * 1...
Given a variable bridge_players , write a statement that increases its value by 4
Given a variable bridge_players , write a statement that increases its value by 4
Answer: bridge_players= bridge_players + ...
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the third is 1.83333... and so on. Assume that n is an integer variable whose value is some positive integer N. Assume also that hn is a variable whose value is the Nth harmonic number. Write an expression whose value is the (N+1)th harmonic number.
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the...
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the third is 1.83333... and so on. Write an expression whose value is the 8th harmonic number.
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the...
Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one. The length of all the smaller ones is the same and is stored in the variable small . Similarly, the length of all the larger ones is the same and is stored in the variable large . Write a single expression whose value is the total area of this room. DO NOT any method invocations.
Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one. The length of all the...
The dimensions (width and length) of room1 have been read into two variables : width1 and length1 . The dimensions of room2 have been read into two other variables : width2 and length2 . Write a single expression whose value is the total area of the two rooms.
The dimensions (width and length) of room1 have been read into two variables : width1 and length1 . The dimensions of room2 have been read into two...
Calculate the BMI of a person using the formula BMI = ( Weight in Pounds / ( Height in inches ) x ( Height in inches ) ) x 703 and assign the value to the variable bmi . Assume the value of the weight in pounds has already been assigned to the variable w and the value of the height in inches has been assigned to the variable h . Take care to use floating-point division.
Calculate the BMI of a person using the formula BMI = ( Weight in Pounds / ( Height in inches ) x ( Height in inches ) ) x 703 and assign the value...
Assign the average of the values in the variables a , b , and c to a variable avg . Assume that the variables a , b , and c have already been assigned a value, but do not assume that the values are all floating-point. The average should be a floating-point value.
Assign the average of the values in the variables a , b , and c to a variable avg . Assume that the variables a , b , and c have already been assigned...
Write an expression that computes the average of the variables exam1 and exam2 (both already assigned values).
Write an expression that computes the average of the variables exam1 and exam2 (both already assigned values).
Answer: (exam1 + exam2) / ...
Write an expression whose value is the last (rightmost) digit of x .
Write an expression whose value is the last (rightmost) digit of x .
Answer: x%1...
Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum amount of change and just single dollars, write an expression for the amount of change (in cents) that would have to be paid.
Assume that price is an integer variable whose value is the price (in US currency) in cents of an item. Assuming the item is paid for with a minimum...
Assume there is a variable , h already assigned a positive integer value. Write the code necessary to assign its square to the variable g . For example, if h had the value 8 then g would get the value 64
Assume there is a variable , h already assigned a positive integer value. Write the code necessary to assign its square to the variable g . For example,...
You are given two variables , both already defined, one associated with a float and named total_weight , containing the weight of a shipment, the other associated with an int and named quantity , containing the number of items in the shipment. Write an expression that calculates the weight of one item.
You are given two variables , both already defined, one associated with a float and named total_weight , containing the weight of a shipment, the other...
You are given two variables , both already defined. One is named price and is associated with a float and is the price of an order. The other is total_number and is associated with an int and is the number of orders. Write an expression that calculates the total price for all orders.
You are given two variables , both already defined. One is named price and is associated with a float and is the price of an order. The other is total_number...
You are given two variables , already defined, named total_weight , containing the weight of a shipment, and weight_of_box , containing the weight of the box in which a product is shipped. Write an expression that calculates the net weight of the product.
You are given two variables , already defined, named total_weight , containing the weight of a shipment, and weight_of_box , containing the weight of...
Write an expression that computes the difference of two variables sales_summer and sales_spring , both of which have already defined.
Write an expression that computes the difference of two variables sales_summer and sales_spring , both of which have already defined.
Answer: sales_summer...
Write an expression that computes the sum of two variables total1 and total2 , which have already been defined.
Write an expression that computes the sum of two variables total1 and total2 , which have already been defined.
Answer: total1 + total...
Write an expression that computes the remainder of the variable principal when divided by the variable divisor . (Assume that each is associated with an int .)
Write an expression that computes the remainder of the variable principal when divided by the variable divisor . (Assume that each is associated with...
Given the variables cost_of_bus_rental and max_bus_riders , write an expression corresponding to the cost per rider (assuming the bus is full).
Given the variables cost_of_bus_rental and max_bus_riders , write an expression corresponding to the cost per rider (assuming the bus is full).
Answer: cost_of_bus_rental...
Given the variable price_per_case , write an expression corresponding to the price of a dozen cases.
Given the variable price_per_case , write an expression corresponding to the price of a dozen cases.
Answer: price_per_case * 1...
Given the variables full_admission_price and discount_amount (already defined), write an expression corresponding to the price of a discount admission.
Given the variables full_admission_price and discount_amount (already defined), write an expression corresponding to the price of a discount admission.
Answer: full_admission_price...
Write an expression that computes the difference of the variables ending_time and starting_time
Write an expression that computes the difference of the variables ending_time and starting_time
Answer: ending_time - starting_tim...
Given the variables taxable_purchases and tax_free_purchases (which already have been defined), write an expression corresponding to the total amount purchased.
Given the variables taxable_purchases and tax_free_purchases (which already have been defined), write an expression corresponding to the total amount...
Write an expression that computes the sum of two variables verbal_score and math_score (assume that both have already been defined).
Write an expression that computes the sum of two variables verbal_score and math_score (assume that both have already been defined).
Answer: verbal_score...
A wall has been built with two pieces of sheetrock, a smaller one and a larger one. The length of the smaller one is stored in the variable small . Similarly, the length of the larger one is stored in the variable large . Write a single expression whose value is the length of this wall.
A wall has been built with two pieces of sheetrock, a smaller one and a larger one. The length of the smaller one is stored in the variable small ....
Given two variables matric_age and grad_age , write a statement that makes the associated value of grad_age 4 more than that of matric_age .
Given two variables matric_age and grad_age , write a statement that makes the associated value of grad_age 4 more than that of matric_age .
Answ...
Variables i and j each have associated values. Swap them, so that i becomes associated with j 's original value, and j becomes associated with is original value. You can use two more variables itemp and jtemp
Variables i and j each have associated values. Swap them, so that i becomes associated with j 's original value, and j becomes associated with is original...
Define two variables , one named length making it refer to 3.5 and the other named width making it refer to 1.55 .
Define two variables , one named length making it refer to 3.5 and the other named width making it refer to 1.55 .
Answer:
length = 3.5
width...
Define a variable "temperature" and make it refer to "98.6" .
Define a variable "temperature" and make it refer to "98.6" .
Answer: temperature = 98....
Assign 8 to a variable named "eight" .
Assign 8 to a variable named "eight" .
Answer: eight = ...
Define a variable "precise" and make it refer to 1.09388641 .
Define a variable "precise" and make it refer to 1.09388641 .
Answer: precise = 1.0938864...
Assign 7 to a variable named "seven"
Assign 7 to a variable named "seven"
Answer: seven = ...
A British logician, whose last name was
A British logician, whose last name was
Answer: Turin...
What are logic errors?
What are logic errors?
Answer: errors when a program does not preform the way it was intended to...
What are runtime errors?
What are runtime errors?
Answer: runtime errors are ones that cause a program to terminate abnormall...
What is an syntax error?
What is an syntax error?
Answer: A syntax error is one where the code construction is mistyped...
The purpose of testing a program with different combinations of data is to expose run-time and
The purpose of testing a program with different combinations of data is to expose run-time and
Answer: logic erro...
Division by zero when the program is executing is an example of a
Division by zero when the program is executing is an example of a
Answer: runtime erro...
An error in a program that involves a violation of language rules will be detected at
An error in a program that involves a violation of language rules will be detected at
Answer: compile tim...
In object-oriented programming a method is
In object-oriented programming a method is
Answer: a code that allows access to an objects attributes or that carries out some other action for...
In object-oriented programming a class is
In object-oriented programming a class is
Answer: a model or template from which objects are created...
An operating system does what?
An operating system does what?
Answer: allocates resources like memory to programs that are runnin...
The code that a programmer writes is called
The code that a programmer writes is called
Answer: source cod...
Regarding Machine language, which statement is NOT true?
Regarding Machine language, which statement is NOT true?
Answer: machine language cannot be used to write a program that can run on any mach...
Which of these is not a programming language?
Which of these is not a programming language?
Answer: HTM...
What best defines a "programming language"?
What best defines a "programming language"?
Answer: it allows us to express an algorith...
Words that have a special meaning in a programming language are called
Words that have a special meaning in a programming language are called
Answer: keyword...
Mice, trackpads, keyboards, scanners, joysticks are all examples of
Mice, trackpads, keyboards, scanners, joysticks are all examples of
Answer: input device...
Monitors, printers, status lights are all examples of
Monitors, printers, status lights are all examples of
Answer: output device...
Flash drives, CDs, external disks are all examples of
Flash drives, CDs, external disks are all examples of
Answer: external storage (memory) device...
3K means about 3 thousand bytes. How would you express four trillion bytes?
3K means about 3 thousand bytes. How would you express four trillion bytes?
Answer: 4T...
3K means about 3 thousand bytes. How would you express five billion bytes?
3K means about 3 thousand bytes. How would you express five billion bytes?
Answer: 5G...
3K means about 3 thousand bytes. How would you express two hundred million bytes?
3K means about 3 thousand bytes. How would you express two hundred million bytes?
Answer: 200M...
RAM, random-access memory, is called that because
RAM, random-access memory, is called that because
Answer: you can pick any two random locations and it will take the same time to access the...
In modern computer systems, a byte consists of
In modern computer systems, a byte consists of
Answer: 8 bit...
A byte in memory is identified by a unique number called its
A byte in memory is identified by a unique number called its
Answer: address
...
At each step of its operation, the input to a Central Processing Unit is
At each step of its operation, the input to a Central Processing Unit is
Answer: an instructio...
When a program is not running, it is stored
When a program is not running, it is stored
Answer: on a dis...
When a program runs on a computer, it is stored in
When a program runs on a computer, it is stored in
Answer: memor...
When a program runs on a computer, the part of the computer that carries out the instructions is called the
When a program runs on a computer, the part of the computer that carries out the instructions is called the
Answer: CP...
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...
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...
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...
When is the code within a catch block executed?
When is the code within a catch block executed?
a. When the code in the try block doesn't compile
b. When the try block finishes executing
c. When...
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....
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....
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. data validation code...
Exception in thread "main" java.util.InputMismatchException
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
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
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
Exception in thread "main" java.util.InputMismatchException
at 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....
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. Exception
c. Throwable
d. RuntimeException
Answer: b....
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 the try block...
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. aren't executed
b. are executed before the...
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 validation code in the main method.
b. It saves you from...
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...
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...
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...
In Java, exceptions are
In Java, exceptions are
a. statements
b. classes
c. compile-time errors
d. objects
Answer: d. object...
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?
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....
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 a value and execute a block of statements based on an integer or single character input?
Which statement allows you to evaluate a 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....
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. onLi...
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 an intent, what is the last argument?
When opening a Web site with an 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...
Whenever a request is made for a document with an extension of____, the Web server sends the file to the scripting engine for processing.
Whenever a request is made for a document with an extension of____, the Web server sends the file to the scripting engine for processing.
a. .aspx
b....
The values, or data, contained in variables are classified into categories known as ____.
The values, or data, contained in variables are classified into categories known as ____.
a. simple types
b. data types
c. object types
d. variable...
The term ____ refers to the process of verifying that your HTML5 (or XHTML) document is well formed, and checking that the elements in your document are correctly written according to the element definitions in a specific DTD.
The term ____ refers to the process of verifying that your HTML5 (or XHTML) document is well formed, and checking that the elements in your document...
You can group selectors so they share the same style declarations by separating each selector with a ____.
You can group selectors so they share the same style declarations by separating each selector with a ____.
a. comma
b. semicolon
c. forward slash
d....
In the following code snippet, "section" is the ____.
In the following code snippet, "section" is the ____.
section
{
border: 2px double blue;
padding: 1em;
margin: 1.5em;
}
a. class
b. rule
c. selector
d....
CSS styles consist of rule sets applied to HTML elements by their selectors (e.g., body, h1, p, .myclass, #myid, etc.). However, a single rule consists of a property and its value, separated by a ____.
CSS styles consist of rule sets applied to HTML elements by their selectors (e.g., body, h1, p, .myclass, #myid, etc.). However, a single rule consists...
Used for text and numerical entries
Used for text and numerical entries
Answer: input boxe...
Used to indicate what type of data a form is submitting
Used to indicate what type of data a form is submitting
Answer: enctyp...
Used to append form data to a URL
Used to append form data to a URL
Answer: ge...
Can be used to group items on a drop-down list
Can be used to group items on a drop-down list
Answer: option group...
Can be used to create an email field that is part of your form but not displayed
Can be used to create an email field that is part of your form but not displayed
Answer: hidde...
Used to organize form elements
Used to organize form elements
Answer: field set...
Used for extended entries that can include several lines of text
Used for extended entries that can include several lines of text
Answer: text area...
Used for long lists of options
Used for long lists of options
Answer: selection list...
Can be clicked to start processing the form
Can be clicked to start processing the form
Answer: form button...
Used to select a single option from a predefined list
Used to select a single option from a predefined list
Answer: option button...
Basic element storing each piece of form information
Basic element storing each piece of form information
Answer: field...
Used to specify an item as either present or absent
Used to specify an item as either present or absent
Answer: check boxe...
The ____ attributes define the dimensions of a text area.
The ____ attributes define the dimensions of a text area.
Answer: rows and col...
The ____ style can be used to change label elements into block elements.
The ____ style can be used to change label elements into block elements.
Answer: display: bloc...
The ____ attribute of the < form > tag represents the older standard for identifying each form on the page.
The ____ attribute of the <form> tag represents the older standard for identifying each form on the page.
Answer: nam...
Information entered into a field is called the field ____.
Information entered into a field is called the field ____.
Answer: valu...
Selection lists usually appear in a ____ box.
Selection lists usually appear in a ____ box.
Answer: drop-down lis...
The ____ control element is used to create a custom button.
The ____ control element is used to create a custom button.
Answer: butto...
In the following rule set, h1 is the
In the following rule set, h1 is the
h1
{
font-size: 700;
color: black;
background-color: yellow;
margin: 10px;
}
a. rule
b. selector
c. property
d....
_____ is a generic grouping element.
_____ is a generic grouping element.
a. <dir>
b. <div>
c. <dd>
d. <span>
Answer: b. <div>...
To add notes or comments, insert a comment tag using the syntax ______
To add notes or comments, insert a comment tag using the syntax ______
a. <---comment>
b. <!--comment-->
c. </--comment>
d. <!--comment!-->
Answer: b....
One benefit of using external style sheets with the @import method is that
One benefit of using external style sheets with the @import method is that
a. it is more efficient than using the link method.
b. it uses less code...
To use the styles in an external style sheet,
To use the styles in an external style sheet,
a. you use the Style attribute of a document head to identify the style sheet
b. you use the Link attribute...
To code a selector for an HTML element, you code
To code a selector for an HTML element, you code
a. the element name preceded by a pound sign (#)
b. the element name preceded by a semicolon
c. the...
The basic appearance of the text in an HTML document is determined by
The basic appearance of the text in an HTML document is determined by
a. IIS
b. ASP.NET
c. the browser
d. your application
Answer: c. the b...
Which of the following statements is true?
Which of the following statements is true?
a. The Label control has a TabStop property, but can't accept focus.
b. The Label control has a TabStop...
What would you set the Text property of a label to if you want the label to appear as shown below, with the letter n as the access key?
What would you set the Text property of a label to if you want the label to appear as shown below, with the letter n as the access key?
a. I_nvoice...
What is the purpose of the Common Language Runtime?
What is the purpose of the Common Language Runtime?
a. it provides pre-written code that can be used by .NET applications
b. it manages the execution...
What is the purpose of the .NET Framework Class Library?
What is the purpose of the .NET Framework Class Library?
a. it manages the execution of .NET applications
b. it specifies the data types that can be...
What is the name of the Visual Studio window that contains controls that you can drag and drop?
What is the name of the Visual Studio window that contains controls that you can drag and drop?
a. Form Designer
b. Code Editor
c. Toolbox
d. Properties...
To work with the files of a solution, you use a Visual Studio window called the
To work with the files of a solution, you use a Visual Studio window called the
a. Form Explorer
b. Solution Explorer
c. Solution Designer
d. Form...
To select two or more controls, you can
To select two or more controls, you can
a. hold down either the Shift or Ctrl key while you click on them
b. drag an outline around the controls while...
To create an access key that will move the focus to a text box, you
To create an access key that will move the focus to a text box, you
a. set the AccessKey property of the text box
b. set the access key in the Text...
To change the file name for a form, project, or solution you use the
To change the file name for a form, project, or solution you use the
a. Form Designer
b. Toolbox
c. Solution Explorer
d. Code Editor
Answer: c....
The tab order determines the order in which
The tab order determines the order in which
a. the controls are displayed on the form
b. the user must enter data into the controls on a form
c. the...
The primary components of the .NET Framework are the .NET Framework Class Library and the
The primary components of the .NET Framework are the .NET Framework Class Library and the
a. Common Language Runtime
b. Common Type Library
c. Command...
The Text property of a control determines
The Text property of a control determines
a. the name of the control and the text that's displayed in it
b. the name that you use to refer to the control...
The .NET Framework Class Library consists of
The .NET Framework Class Library consists of
a. classes that are organized into namespaces
b. solutions that are organized into sublibraries
c. classes...
Before a C# application can be run, it must be compiled into a language called
Before a C# application can be run, it must be compiled into a language called
a. Microsoft Intermediate Language
b. Microsoft Runtime Language
c....
An assembly is
An assembly is
a. an executable file that includes the MSIL or IL
b. a container that holds projects
c. the source file for a .NET application
d. a...
Access keys let the user activate a control by
Access keys let the user activate a control by
a. pressing Alt and Ctrl plus another key
b. pressing Alt plus another key
c. pressing Shift plus another...
A solution is
A solution is
a. the source file for a .NET application
b. an executable file that contains MSIL or IL
c. a container that holds projects
d. a secondary...
A Windows Forms application runs
A Windows Forms application runs
a. in a web browser
b. under control of the compiler
c. under the Windows operating system
d. in the console of...
Which part of the following URL identifies the server that's hosting the web site? http://localhost/MainStore/Hours.aspx
Which part of the following URL identifies the server that's hosting the web site?http://localhost/MainStore/Hours.aspx
a. localhost
b. Hours.aspx
c....
Unlike a static web page, a dynamic web page
Unlike a static web page, a dynamic web page
a. can't be displayed in a web browser
b. is created in response to an HTTP request
c. consists of HTML
d....
The protocol that's used by a web browser and a web server to communicate in a web application is
The protocol that's used by a web browser and a web server to communicate in a web application is
a. IIS
b. DBMS
c. HTML
d. HTTP
Answer: d....
The only software component that's required to run a web application on a client is
The only software component that's required to run a web application on a client is
a. a compiler
b. a web browser
c. a web server
d. an application...
The main purpose of the .NET Framework Class Library is to
The main purpose of the .NET Framework Class Library is to
a. provide the classes that are used for developing .NET applications
b. provide the classes...
The component of the .NET Framework that manages the execution of .NET programs is the
The component of the .NET Framework that manages the execution of .NET programs is the
a. Common Type System
b. Operating System
c. Common Language...
In an Internet development environment, you use an FTP server to
In an Internet development environment, you use an FTP server to
a. transfer files between the client computer and the web server
b. access data on...
Indicate the correct initialization of the follow variables 'a' and 'b':
Indicate the correct initialization of the follow variables 'a' and 'b':
a. int a = 12, b = 20.5;
b. int a = 12; b = 20;
c. int a = 12; int b = 20;
d....
Select the following data types in order of increasing size:
Select the following data types in order of increasing size:
a. long < short < int < sbyte
b. sbyte < short < int < long
c. short...
How many bytes are stored in the C# long data type?
How many bytes are stored in the C# long data type?
a. 8
b. 4
c. 2
d. 1
Answer: a. ...
How many bits are in one byte?
How many bits are in one byte?
a. 1
b. 2
c. 4
d. 8
Answer: d. ...
You can get context-sensitive help information from the Code Editor by
You can get context-sensitive help information from the Code Editor by
a. selecting Contents from the Help menu
b. selecting Index from the Help menu
c....
Which of the following statements is true?
Which of the following statements is true?
a. You can't use C# keywords in a comment.
b. Comments can be inaccurate or out of date.
c. Comments make...
Which of the following is not defined by a class?
Which of the following is not defined by a class?
a. events
b. properties
c. notices
d. methods
Answer: c. notice...
Which of the following is not a recommended way to improve the readability of your C# code?
Which of the following is not a recommended way to improve the readability of your C# code?
a. Use indentation to align related elements of code.
b....
Which of the following examples is a valid C# comment?
Which of the following examples is a valid C# comment?
a. // This is a comment
b. / This is a comment
c. \ This is a comment
d. ' This is a comment
Answer: a....
When you test an application, your goal is to
When you test an application, your goal is to
a. find runtime errors
b. fix syntax errors
c. find syntax errors
d. fix runtime errors
Answer: a....
When a running application encounters a problem that prevents a statement from being executed,
When a running application encounters a problem that prevents a statement from being executed,
a. a build error occurs
b. a runtime error occurs
c....
What is the term for a method that responds to events?
What is the term for a method that responds to events?
a. event procedure
b. event handling method
c. event wiring
d. event handler
Answer: d....
What is another name for a runtime error?
What is another name for a runtime error?
a. erratum
b. exception
c. event
d. break
Answer: b. exceptio...
To say that a C# application is event-driven means that it responds to
To say that a C# application is event-driven means that it responds to
a. application events only
b. class events only
c. user events and other types...
To refer to a property of an object in your C# code, you code the
To refer to a property of an object in your C# code, you code the
a. property name followed by a period and the class name
b. object name followed...
One common cause of a runtime error is
One common cause of a runtime error is
a. a form that has invalid property settings
b. a user entry that can't be converted to a number
c. a control...
Instantiation is the process of generating
Instantiation is the process of generating
a. a member from a class
b. an instance of an object
c. an object from a class
d. an instance of a member
Answer: c....
C# statements must end with a
C# statements must end with a
a. colon - :
b. period - .
c. slash - /
d. semicolon - ;
Answer: d. semicolon - ...
Blocks of code are enclosed in
Blocks of code are enclosed in
a. braces - { }
b. brackets - [ ]
c. slashes - / /
d. parentheses - ( )
Answer: a. braces - { ...
An object is
An object is
a. an instance of a class
b. code that defines the characteristics of a class
c. a grouping of related classes
d. code for a Windows form
Answer: a....
A syntax error is identified in
A syntax error is identified in
a. the Code Editor window only
b. the Error List window only
c. the Code Editor window and the Error List window
Answer: c....
A data tip
A data tip
a. displays the value of a variable or property
b. indicates what data will be modified next
c. displays the possible values for a property
d....
A class is
A class is
a. an instance of an object
b. a grouping of related objects
c. code (blueprint or framework) that defines the characteristics of an object
d....
What does the following code do? txtMonthlyInvestment.Focus();
What does the following code do?txtMonthlyInvestment.Focus();
a. calls the Focus method of the txtMonthlyInvestment control
b. calls the () method...
Subscribe to:
Posts (Atom)