AHIP 1405 ALL QUIZ WIT ANSWERS FINAL EXAMS PREPARATION
lOMoARcPSD| AHIP 1405 ALL QUIZ WIT ANSWERS FINAL EXAMS PREPARATION Which characteristic of mobile devices makes them challenging as web page clients? Select one: a. hardware characteristics b. users c. Services d. Intents Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text Which HTML meta tag is used to control layout on mobile devices? Select one: a. table b. viewport c. span d. element Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text Since most mobile devices support the Touch event, what CSS pseudo class cannot be used on link objects? Select one: a. CSS :visited b. CSS :link c. CSS :hover d. CSS :touch Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text Why should specific size images be loaded on appropriate mobile devices, instead of the same large image downloaded to the device and then resized by the browser? Select one: a. Activities b. image ratio c. copyright d. low or expensive bandwidth Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text In addition to height and width, what is the third metric when dealing with mobile images or screens? Select one: a. pixel ratio b. coloring c. contrast d. optimization Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text What API (application programming interface) is available on most mobile devices? Select one: a. development and connection b. orientation and geolocation c. device restart d. linear-gradient Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text When developing Mobile Web pages for many devices, what is a good practice? Select one: a. rapid development b. testing on desktop browsers c. cross-browser development d. use of Flash Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text What is the name for the practice of detecting the type of the device, which is downloading your pages? Select one: a. spying b. declaring c. Multimedia d. user agent sniffing Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text What is the property sent from the device browser to the server, along with the web page request, which tells us what type of device is used? Select one: a. http header b. http-version c. device-type d. user-agent Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text What is the web browser used on iOS mobile devices? Select one: a. Web Toolkit b. Chrome c. Internet Explorer d. Safari What mobile platforms are most common today? Select one or more: a. iOS b. SQL Server c. MySQL d. Android Feedback The correct answers are: iOS, Android Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text What languages are used to develop native mobile apps? Select one or more: a. Cobol b. Java c. Objective-C d. Android Feedback The correct answers are: Java, Objective-C Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text What languages are used to develop web based mobile apps? Select one or more: a. C++ b. HTML c. JavaScript d. Objective-C Feedback The correct answers are: HTML, JavaScript Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text Which element on a mobile platform is the key to web based apps? Select one: a. Settings app b. Web browser app c. Volume adjustment d. Google Maps Feedback The correct answer is: Web browser app Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text Which technology holds great promise for web based mobile apps? Select one: a. WHATWG b. HTML5 c. MySQL d. W3C Feedback The correct answer is: HTML5 Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text What is Mapping? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. What the user expects to happen when they interact with the interface is exactly what should happen Feedback Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text Many popular mobile devices use touch and gestural input. Select one: True False Feedback The correct answer is 'True'. Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text On phones, constrained screen sizes, coupled with large interaction targets, result in fewer controls per panel. Fingers and hands also obscure much more of the screen on a UI than a mouse pointer icon. Select one: True False Feedback The correct answer is 'True'. Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text Each platform defines its own visual style through color themes, icon styles, metaphors, and widget rendering. The use of a platform visual theme is more than an aesthetic choice. Platform themes establish user expectations that user interactions in the application will follow platform conventions. Select one: True False Feedback The correct answer is 'True'. Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text Which mobile application element is not found on desktop computers? Select one: a. Textboxes b. Locality c. Volume adjustment d. Buttons Feedback The correct answer is: Locality Question 11 Correct Mark 1.00 out of 1.00 Flag question Question text What is Learnability? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Feedback Question 12 Correct Mark 1.00 out of 1.00 Flag question Question text What is Efficiency? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Feedback The correct answer is: Number of steps it takes for a user to complete a task Question 13 Incorrect Mark 0.00 out of 1.00 Flag question Question text What is Memorability? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Feedback Question 14 Correct Mark 1.00 out of 1.00 Flag question Question text What is Error Recovery? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Feedback The correct answer is: User should never be allowed to make a mistake Question 15 Correct Mark 1.00 out of 1.00 Flag question Question text What is Simplicity? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Usual tasks should be easy and less common tasks should be possible d. User should never be allowed to make a mistake Feedback Question 1 Correct Mark 1.00 out of 1.00 Flag question Question text Java expects the start of the program to be in which method? Select one: a. private Main {} b. private my Start(String[] args) c. public void start() d. public static void main(String[] args) Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text The building blocks of the Android user interface are: Select one: a. Activities b. Content Providers c. Services d. Intents Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text Process intended to run independent of an Activity to check for updates or to play music even if the operating Activity is no longer active: Select one: a. Activities b. Content Providers c. Services d. Intents Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text When using the keyword private before a variable or a method, it means only the class itself can access the variable or method. What designation would allow access to the variable or the method from any part of the Java program? Select one: a. void b. Integer c. everyone d. public Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text The simplest Android Widget is a label. What is its name in the layout file? Select one: a. TextView b. android-label c. d. LabelView Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text What makes mobile devices unique and somewhat challenging as clients to web pages? Select one: a. hardware characteristics b. users c. Services d. Intents Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text What mobile platforms are most common today? Select one or more: a. iOS b. SQL Server c. MySQL d. Android Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text Will this if statement work? if (SecretNum = YourNumber ) Select one: a. Yes b. No Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text What is Learnability? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text The keyboard in an Android app can be modified as needed. There are six basic configurations for the keyboard through the ndroid:inputType attribute. Which one is missing from this list? • number • phone • datetime • date • time Select one: a. email b. text c. address d. calculation Question 11 Correct Mark 1.00 out of 1.00 Flag question Question text Which mobile application element is not found on desktop computers? Select one: a. Textboxes b. Locality c. Volume adjustment d. Buttons Question 12 Correct Mark 1.00 out of 1.00 Flag question Question text How many lines will this code display? S(“Hello “); S(“World”); Select one: a. 4 b. 3 c. 2 d. 1 Question 13 Correct Mark 1.00 out of 1.00 Flag question Question text What is a basic unit of a Java program or an object? Select one: a. method b. class c. property d. public Question 14 Correct Mark 1.00 out of 1.00 Flag question Question text Which file contains GUI layout information like a list of buttons, text boxes? Select one: a. AndroidM b. c. res/layout/ d. assets/ Question 15 Correct Mark 1.00 out of 1.00 Flag question Question text The primitive types in Java are byte, short, int, long, float, double, char, boolean. Which one can be used to represent a word like “Hello”? Select one: a. char b. none, the String object should be used c. double d. long Question 16 Correct Mark 1.00 out of 1.00 Flag question Question text If the name of the Java class is: class MyProgram What should be the name of the Java file? Select one: a. MyProgram b. myP c. MyP d. program Question 17 Correct Mark 1.00 out of 1.00 Flag question Question text What is the name of the process to determine the type of browser, which is viewing a page? Select one: a. spying b. declaring c. Multimedia d. user agent sniffing Question 18 Correct Mark 1.00 out of 1.00 Flag question Question text What Java code can be used on the checkbox Widget? Select one: a. getCheckMark() b. isChecked() c. setCheckMark() d. getMark() Question 19 Correct Mark 1.00 out of 1.00 Flag question Question text Which XML element of the Android manifest indicates the code that should be invoked on key system events? Select one: a. uses-permission b. instrumentation c. uses-sdk d. application Question 20 Correct Mark 1.00 out of 1.00 Flag question Question text Java expects the start of the program to be in which method? Select one: a. private Main {} b. private my Start(String[] args) c. public void start() d. public static void main(String[] args) Question 21 Correct Mark 1.00 out of 1.00 Flag question Question text What is Efficiency? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Question 22 Correct Mark 1.00 out of 1.00 Flag question Question text How many equal signs “=” are needed to compare values ? Select one: a. -1 b. 0 c. 1 d. 2 Question 23 Correct Mark 1.00 out of 1.00 Flag question Question text What is the Widget created by this code in the layout file? /> Select one: a. image b. android:id c. ViewBounds d. drawable/molecule Question 24 Correct Mark 1.00 out of 1.00 Flag question Question text What is a valid property of a label widget? Select one: a. TextView b. android:typeface c. layout/ d. LabelView Question 25 Correct Mark 1.00 out of 1.00 Flag question Question text Which Widget can be used to create a time clock showing hours and minutes? Select one: a. clock_do b. android:clock c. getTime d. AnalogClock Question 26 Correct Mark 1.00 out of 1.00 Flag question Question text What is Error Recovery? Select one: a. An interface should be easy to use from the first time the user interacts with it b. Number of steps it takes for a user to complete a task c. Interface should be easier to use each time the user interacts with it d. User should never be allowed to make a mistake Question 27 Correct Mark 1.00 out of 1.00 Flag question Question text What Android feature allows the user to play back music, take pictures with the camera, or use the microphone for audio note-taking? Select one: a. Storage b. Network c. Multimedia d. GPS Question 28 Correct Mark 1.00 out of 1.00 Flag question Question text Given the Learning Activity 3.5 code, which line makes external code available to our program? Select one: a. getCode(); b. import .Scanner; c. if d. Int(); Question 29 Correct Mark 1.00 out of 1.00 Flag question Question text Which element on a mobile platform is the key to web based apps? Select one: a. Settings app b. Web browser app c. Volume adjustment d. Google Maps Question 30 Correct Mark 1.00 out of 1.00 Flag question Question text To create an integer variable and assign a value, you would use: Select one: a. Int myNumber = 5; b. myNumber = 5; c. int myNumber; myNumber = 5; d. 5 = myNumber; Question 31 Correct Mark 1.00 out of 1.00 Flag question Question text What allows you to package data files with your application, for things that do not change, such as icons or help files? Select one: a. Storage b. Network c. Multimedia d. GPS Question 32 Correct Mark 1.00 out of 1.00 Flag question Question text Consider the following Java code: class Student { private String firstName; private String lastName; public Student(String firstName, String lastName) { Name = firstName; Name = lastName; } // Your code goes here } public class Main { public static void main(String[] args) { Student[] students = new Student[] { new Student("Morgan", "Freeman"), new Student("Brad", "Pitt"), new Student("Kevin", "Spacey"), }; for (Student s : students) { FullName(); } } } What do we call printFullName() ? Select one: a. function b. static c. display feature d. method Question 33 Correct Mark 1.00 out of 1.00 Flag question Question text If you need a user to type in a date, what Widget should you use? It will allow the user to select a date, which means you don't have to validate or explain the format like day/month/year or month/day/year, or four digit year 2013 or two digit year 13. Select one: a. TimePickerDialog b. DatePicker c. DatePicketDialog d. Chrono Question 34 Correct Mark 1.00 out of 1.00 Flag question Select one: a. app displays two buttons, where users can type in date and time b. app takes current date and time and stores in two buttons c. app displays two buttons to set date and time, then presents a dialog based on dates and time for user to select the numbers. d. app displays date and time Question 35 Correct Mark 1.00 out of 1.00 Flag question Question text What API (application programming interface) is available on most mobile devices? Select one: a. development and connection b. orientation and geolocation c. device restart d. linear-gradient Question 36 Correct Mark 1.00 out of 1.00 Flag question Question text What Widgets are being created in this app: Layout: Which line is the activity? Select one: a. TextLabel, icicle b. Label, List c. List, Entry field d. Spinner, Label Question 37 Correct Mark 1.00 out of 1.00 Flag question Question text Which element should you use in addition to TabHost and TabWidget in order to create a tabbed portion of a view? Select one: a. FrameLayout b. android:id c. ViewBounds d. drawable/molecule Question 38 Correct Mark 1.00 out of 1.00 Flag question Question text Which HTML meta tag is used to control layout on mobile devices? Select one: a. cache b. viewport c. refresh d. description Question 39 Correct Mark 1.00 out of 1.00 Flag question Question text What provides Internet access at any level you wish, from raw Java sockets all the way up to a built-in WebKit-based Web browser widget? Select one: a. Storage b. Network c. Multimedia d. GPS Question 40 Correct Mark 1.00 out of 1.00 Flag question Question text Consider the following Java code, then answer: What do we call printFullName() ? class Student { private String firstName; private String lastName; public Student(String firstName, String lastName) { Name = firstName; Name = lastName; } // Your code goes here } public class Main { public static void main(String[] args) { Student[] students = new Student[] { new Student("Morgan", "Freeman"), new Student("Brad", "Pitt"), new Student("Kevin", "Spacey"), }; for (Student s : students) { FullName(); } } } Select one: a. function b. static c. display feature d. method What is a basic unit of a Java program or an object? Select one: a. method b. class c. property d. public Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text What type of programming does Java implement? Select one: a. object oriented b. procedural c. no-SQL d. relational Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text Which method shows words on a screen? Select one: a. Sln(); b. printnow(); c. screen(); d. GPS(); Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text Consider the following Java code, then answer: What do we call printFullName() ? class Student { private String firstName; private String lastName; public Student(String firstName, String lastName) { Name = firstName; Name = lastName; } // Your code goes here } public class Main { public static void main(String[] args) { Student[] students = new Student[] { new Student("Morgan", "Freeman"), new Student("Brad", "Pitt"), new Student("Kevin", "Spacey"), }; for (Student s : students) { FullName(); } } } Select one: a. function b. static c. display feature d. method Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text Java expects the start of the program to be in which method? Select one: a. private Main {} b. private my Start(String[] args) c. public void start() d. public static void main(String[] args) Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text If a method does not return any value, what type would it take? Select one: a. Integer b. String c. void d. Intents Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text To assign a value, Java uses a single “=” sign, as in x=5. What symbol is used to compare variables or values in an if statement? Select one: a. .= b. =. c. ++ d. == Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text The primitive types in Java are byte, short, int, long, float, double, char, boolean. Which one can be used to represent a word like “Hello”? Select one: a. char b. none, the String object should be used c. double d. long Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text When using the keyword private before a variable or a method, it means only the class itself can access the variable or method. What designation would allow access to the variable or the method from any part of the Java program? Select one: a. void b. Integer c. everyone d. public Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text To create an integer variable and assign a value, you would use: Select one: a. Int myNumber = 5; b. myNumber = 5; c. int myNumber; myNumber = 5; d. 5 = myNumber; The simplest Android Widget is a label. What is its name in the layout file? Select one: a. TextView b. android-label c. d. LabelView Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text What is a valid property of a label widget? Select one: a. TextView b. android:typeface c. layout/ d. LabelView Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text Given the following code in the layout file, where will the text be displayed in the Android app? /> Select one: a. bottom left b. bottom right c. top left d. top right Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text Given the code in the Java file and later in the layout file, what is the Widget being programmed and what is the event? public void someMethod(View theButton) { // do something useful here } <Button android:onClick="someMethod" ... /> Select one: a. Button, someMethod b. theButton, click c. someMethod, onClick d. Button, onClick Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text What is the Widget created by this code in the layout file? android:layout_height="fill_parent" android:adjustViewBounds="true" android:src="@drawable/molecule" /> Select one: a. image b. android:id c. ViewBounds d. drawable/molecule Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text The following code creates the EditText Widget. What does this Widget look like in comparison to labels, images, or buttons? <?xml version="1.0" encoding="utf-8"?> <EditText xmlns:android=" android:id="@+id/field" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="false" /> Select one: a. large label b. a drop down list c. field to type something in d. checkbox Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text What Java code can be used on the checkbox Widget? <?xml version="1.0" encoding="utf-8"?> <CheckBox xmlns:android=" android:id="@+id/check" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="This checkbox is: unchecked" /> Select one: a. getCheckMark() b. isChecked() c. setCheckMark() d. getMark() Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text Given the following code of the app, what is the app doing? Layout file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/selection" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <AutoCompleteTextView android:id="@+id/edit" android:layout_width="fill_parent" android:layout_height="wrap_content" android:completionThreshold="3"/> </LinearLayout> The corresponding Java code is: public class AutoCompleteDemo extends Activity implements TextWatcher { TextView selection; AutoCompleteTextView edit; String[] items={"lorem", "ipsum", "dolor", "sit", "amet", "consectetuer", "adipiscing", "elit", "morbi", "vel", "ligula", "vitae", "arcu", "aliquet", "mollis", "etiam", "vel", "erat", "placerat", "ante", "porttitor", "sodales", "pellentesque", "augue", "purus"}; @Override public void onCreate(Bundle icicle) { Create(icicle); setContentView(R.); selection=(TextView)findViewById(R.tion); edit=(AutoCompleteTextView)findViewById(R.); TextChangedListener(this); Adapter(new ArrayAdapter<String>(this, android.R.e_dropdown_item_1line, items)); } public void onTextChanged(CharSequence s, int start, int before, int count) { Text(Text()); } public void beforeTextChanged(CharSequence s, int start, int count, int after) { // needed for interface, but not used } public void afterTextChanged(Editable s) { // needed for interface, but not used } } Select one: a. This application has an error and it will not run. b. As the user types, matches are shown in a selection list that, like with Spinner, folds down from the field. The user can type in the suggested word. c. As the user types, the text is comparing the entered text as a prefix against a list of previous entries. This is a spelling wizard. d. As the user types, the text is treated as a prefix filter, comparing the entered text as a prefix against a list of candidates. Matches are shown in a selection list that, like with Spinner, folds down from the field. The user can either type out an entry (e.g., something not in the list) or choose an entry from the list to be the value of the field. Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text What Widgets are being created in this app: Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:id="@+id/selection" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <Spinner android:id="@+id/spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawSelectorOnTop="true" /> </LinearLayout> Java code: public class SpinnerDemo extends Activity implements AdapterView.OnItemSelectedListener { TextView selection; String[] items={"lorem", "ipsum", "dolor", "sit", "amet", "consectetuer", "adipiscing", "elit", "morbi", "vel", "ligula", "vitae", "arcu", "aliquet", "mollis", "etiam", "vel", "erat", "placerat", "ante", "porttitor", "sodales", "pellentesque", "augue", "purus"}; @Override public void onCreate(Bundle icicle) { Create(icicle); setContentView(R.); selection=(TextView)findViewById(R.tion); Which line is the activity? Select one: a. TextLabel, icicle b. Label, List c. List, Entry field d. Spinner, Label Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text True or False: In Android, the Spinner is the equivalent of the drop-down selector. Select one: True False This layout code will change the font of the entry field: <TextView android:text="monospace:" android:layout_marginRight="4px" android:textSize="20sp" /> Select one: True False Feedback The correct answer is 'False'. Question 2 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text If you need a user to type in a date, what Widget should you use? It will allow the user to select a date, which means you don't have to validate or explain the format like day/month/year or month/day/year, or four digit year 2013 or two digit year 13. Select one: a. TimePickerDialog b. DatePicker c. DatePicketDialog d. Chrono Feedback The correct answer is: DatePicker Question 3 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text The following code creates an app which does what? Layout file: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" > <TextView android:id="@+id/dateAndTime" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <Button android:id="@+id/dateBtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Set the Date" /> <Button android:id="@+id/timeBtn" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Set the Time" /> </LinearLayout> Java code: public class ChronoDemo extends Activity { DateFormat fmtDateAndTime=DateFDateTimeInstance(); TextView dateAndTimeLabel; Calendar dateAndTime=CInstance(); DatePickerDialog.OnDateSetListener d=new DatePickerDialog.OnDateSetListener() { } }; TimePickerDialog.OnTimeSetListener t=new TimePickerDialog.OnTimeSetListener() { } }; @Override public void onCreate(Bundle icicle) { Create(icicle); setContentView(R.); Button btn=(Button)findViewById(R.Btn); OnClickListener(new View.OnClickListener() { public void onClick(View v) { new DatePickerDialog(ChronoD, d, public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { dateAndT(Calendar.YEAR, year); dateAndT(Calendar.MONTH, monthOfYear); dateAndT(Calendar.DAY_OF_MONTH, dayOfMonth); updateLabel(); public void onTimeSet(TimePicker view, int hourOfDay, int minute) { dateAndT(Calendar.HOUR_OF_DAY, hourOfDay); dateAndT(Calendar.MINUTE, minute); updateLabel(); } }); dateAndT(Calendar.YEAR), dateAndT(Calendar.MONTH), dateAndT(Calendar.DAY_OF_MONTH)).show(); tn=(Button)findViewById(R.Btn); OnClickListener(new View.OnClickListener() { public void onClick(View v) { new TimePickerDialog(ChronoD, t, } }); dateAndT(Calendar.HOUR_OF_DAY), dateAndT(Calendar.MINUTE), true).show(); dateAndTimeLabel=(TextView)findViewById(R.AndTime); updateLabel(); } private void updateLabel() { dateAndTimeLText(fmtDateAndTime .format(dateAndTTime())); } } Select one: a. app displays two buttons, where users can type in date and time b. app takes current date and time and stores in two buttons c. app displays two buttons to set date and time, then presents a dialog based on dates and time for user to select the numbers. d. app displays date and time Feedback The correct answer is: app displays two buttons to set date and time, then presents a dialog based on dates and time for user to select the numbers. Question 4 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text Which Widget can be used to create a time clock showing hours and minutes? Select one: a. clock_do b. android:clock c. getTime d. AnalogClock Feedback The correct answer is: AnalogClock Question 5 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text Which element should you use in addition to TabHost and TabWidget in order to create a tabbed portion of a view? Select one: a. FrameLayout b. android:id c. ViewBounds d. drawable/molecule Feedback The correct answer is: FrameLayout Question 6 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text The SlidingDrawer should contain two things: 1. A handle, frequently an ImageView and the second: Select one: a. large label b. a drop down list c. The contents of the drawer itself, usually some sort of container d. checkbox Feedback The correct answer is: The contents of the drawer itself, usually some sort of container Question 7 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text The keyboard in an Android app can be modified as needed. There are six basic configurations for the keyboard through the ndroid:inputType attribute. Which one is missing from this list? number phone datetime date time Select one: a. email b. text c. address d. calculation Feedback The correct answer is: text Question 8 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text Which modifier allows us to validate an email address in a TextView? Select one: a. android:inputType="number|numberSigned|numberDecimal" b. android:inputType="text|EmailAddress" c. android:inputType="text|textMultiLine|textAutoCorrect" android:minLines="3" android:gravity="top" d. android:inputType="text|textEmailAddress" Feedback The correct answer is: android:inputType="text|textEmailAddress" Question 9 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text What does this app do? Layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android=" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > <WebView android:id="@+id/webkit" android:layout_width="fill_parent" android:layout_height="fill_parent" /> </LinearLayout> The Java code: package er1; import .Activity; import .Bundle; import t.WebView; public class BrowserDemo1 extends Activity { WebView browser; @Override public void onCreate(Bundle icicle) { Create(icicle); setContentView(R.); browser=(WebView)findViewById(R.t); Url(""); } } Which line is the activity? Select one: a. Loads RSS feed b. Displays SDK c. Downloads services d. Shows the website Feedback The correct answer is: Shows the website Question 10 Correct Mark 1.00 out of 1.00 Not flaggedFlag question Question text True or False: Intents are ways of specifying something you want accomplished, then telling Android to go find something to accomplish it. Frequently, these are used to cause activities to spawn. For example, whenever you launch an application from the main Android application launcher, the launcher creates an Intent and has Android open up the activity associated with that Intent. Select one: True False Feedback The correct answer is 'True'.
Written for
- Institution
- AHIST 1405
- Course
- AHIST 1405
Document information
- Uploaded on
- March 29, 2023
- Number of pages
- 72
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
ahip 1405 all quiz wit answers final exams preparation 2022 2023 which characteristic of mobile devices makes them challenging as web page clients select one a hardware characteristics b users