{"id":157,"date":"2014-04-30T17:21:49","date_gmt":"2014-04-30T08:21:49","guid":{"rendered":"http:\/\/ace.it-casa.org\/en\/?page_id=157"},"modified":"2014-05-22T14:39:07","modified_gmt":"2014-05-22T05:39:07","slug":"practice-test","status":"publish","type":"page","link":"http:\/\/ace.it-casa.org\/en\/aceabout\/application-exam\/practice-test\/","title":{"rendered":"Practice test"},"content":{"rendered":"<h1>Android Application Basic Examination<br \/>Practice test<\/h1>\n<div>\u25a0\u3000For questions 1-10, read the question, select the answer, and when you are finished click the &#8220;Evaluate&#8221; button.<\/div>\n<p><\/p>\n<form action=\"results\" method=\"post\">\n<div class=\"question\">Android Framework&lt;1> &#8211; System Architecture &#8211; API level<br \/><span class=\"q\">Q1. <\/span>Pick the correct answer about the relationship between Android version and API Level.<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a01\" value=\"a\" \/><label for=\"a01a\"> A\uff0eThe first version of Android (Android 1.0) had an API Level of 0.<\/label><\/li>\n<li><input type=\"radio\" name=\"a01\" value=\"b\" \/><label for=\"a01b\"> B\uff0eThe API Level changes along with each major version of Android.<\/label><\/li>\n<li><input type=\"radio\" name=\"a01\" value=\"c\" \/><label for=\"a01c\"> C\uff0eThe API Level is increased by one with each version change (major or minor).<\/label><\/li>\n<li><input type=\"radio\" name=\"a01\" value=\"d\" \/> <label for=\"a01d\">D\uff0eFor each major version of Android, only one API Level is supported.<\/label><\/li>\n<\/ol>\n<div class=\"question\">Android Framework&lt;1> &#8211; User Interface &#8211; TableLayout<br \/>\n<span class=\"q\">Q2. <\/span>Pick the correct view that is displayed when the below layout file is used.<\/div>\n<pre style=\"margin-left:40px;width:80%\">\r\n01: &lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;utf&#8208;8&quot;?&gt; \r\n02: &lt;TableLayout&nbsp;xmlns:android=&quot;http:\/\/schemas.android.com\/apk\/res\/android&quot; \r\n03:     android:layout_width=&quot;fill_parent&quot; \r\n04:     android:layout_height=&quot;fill_parent&quot; \r\n05:     android:stretchColumns=&quot;0,1,2&quot;&gt; \r\n06:     &lt;TableRow&gt; \r\n07:         &lt;Button&nbsp;android:text=&quot;1&quot; \/&gt; \r\n08:         &lt;Button&nbsp;android:text=&quot;2&quot; \/&gt;\r\n09:         &lt;Button&nbsp;android:text=&quot;3&quot; \/&gt;\r\n10:     &lt;\/TableRow&gt;\r\n11:     &lt;TableRow&gt;\r\n12:         &lt;Button&nbsp;android:text=&quot;4&quot; \/&gt;\r\n13:         &lt;Button&nbsp;android:text=&quot;5&quot; \/&gt;\r\n14:         &lt;Button&nbsp;android:text=&quot;6&quot; \/&gt;\r\n15:     &lt;\/TableRow&gt;\r\n16:     &lt;TableRow&gt;\r\n17:         &lt;Button&nbsp;android:text=&quot;7&quot; \/&gt;\r\n18:         &lt;Button&nbsp;android:text=&quot;8&quot; \/&gt;\r\n19:         &lt;Button&nbsp;android:text=&quot;9&quot; \/&gt;\r\n20:     &lt;\/TableRow&gt;\r\n21:     &lt;TableRow&gt;\r\n22:         &lt;Button&nbsp;android:text=&quot;0&quot;\r\n23:             android:layout_span=&quot;3&quot; \/&gt;\r\n24:     &lt;\/TableRow&gt;\r\n25: &lt;\/TableLayout&gt; <\/pre>\n<div class=\"alignleft\">\n<input type=\"radio\" name=\"a02\" value=\"a\" \/> <label for=\"a02a\">A\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/oesf-edu.com\/wp-content\/uploads\/2013\/08\/exam-01.gif\" \/><\/label>\n<\/div>\n<div class=\"alignleft\">\n<input type=\"radio\" name=\"a02\" value=\"b\" \/> <label for=\"a02b\">B\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/oesf-edu.com\/wp-content\/uploads\/2013\/08\/exam-o2.gif\" \/><\/label>\n<\/div>\n<div class=\"alignleft\">\n<input type=\"radio\" name=\"a02\" value=\"c\" \/> <label for=\"a02c\">C\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/oesf-edu.com\/wp-content\/uploads\/2013\/08\/exam-03.gif\" \/><\/label>\n<\/div>\n<div class=\"alignleft\">\n<input type=\"radio\" name=\"a02\" value=\"d\" \/> <label for=\"a02d\">D\uff0e<br \/>\n<img decoding=\"async\" src=\"http:\/\/oesf-edu.com\/wp-content\/uploads\/2013\/08\/exam-04.gif\" \/><\/label>\n<\/div>\n<p><br class=\"clear\" \/><\/p>\n<div class=\"question\">Android Framework&lt;1> &#8211; Application Components &#8211; Activating an Activity through Intent<br \/>\n<span class=\"q\">Q3. <\/span>Pick the correct answer about starting an Activity using Intents.<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a03\" value=\"a\" \/><label for=\"a03a\"> A\uff0eTo start an Activity, call the start method with an Intent as a parameter. The Intent should have the required parameters set.<\/label><\/li>\n<li><input type=\"radio\" name=\"a03\" value=\"b\" \/><label for=\"a03b\"> B\uff0eThe required parameters to start an Activity are written in the AndroidManifest.xml using the &lt;intent&gt; tag.<\/label><\/li>\n<li><input type=\"radio\" name=\"a03\" value=\"c\" \/><label for=\"a03c\"> C\uff0eIf a result is needed, the Activity should be started using the startActivityForResult method, and the result processed using the onActivityResult method.<\/label><\/li>\n<li><input type=\"radio\" name=\"a03\" value=\"d\" \/><label for=\"a03d\"> D\uff0eFor the started Activity to return a result, it calls the finishActivity method with a return value such as RESULT_OK.<\/label><\/li>\n<\/ol>\n<div class=\"question\">Android Framework &lt;2> &#8211; Communication &#8211; Wi-Fi<br \/>\n<span class=\"q\">Q4. <\/span>Which of the following methods found in the WifiInfo class is used to get the MAC Address of a network access point?<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a04\" value=\"a\" \/><label for=\"a04a\"> A\uff0egetBSSID<\/label><\/li>\n<li><input type=\"radio\" name=\"a04\" value=\"b\" \/><label for=\"a04b\"> B\uff0egetSystemService<\/label><\/li>\n<li><input type=\"radio\" name=\"a04\" value=\"c\" \/><label for=\"a04c\"> C\uff0eonLocationChanged<\/label><\/li>\n<li><input type=\"radio\" name=\"a04\" value=\"d\" \/><label for=\"a04d\"> D\uff0erequestLocationUpdates<\/label><\/li>\n<\/ol>\n<div class=\"question\">Android Framework &lt;2> &#8211; External Devices and Sensors &#8211; Aquiring location information by GPS<br \/>\n<span class=\"q\">Q5. <\/span>Which of the following methods is used to get new location information when a position has changed?<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a05\" value=\"a\" \/><label for=\"a05a\"> A\uff0egetPosition Method<\/label><\/li>\n<li><input type=\"radio\" name=\"a05\" value=\"b\" \/><label for=\"a05b\"> B\uff0egetSystemService Method<\/label><\/li>\n<li><input type=\"radio\" name=\"a05\" value=\"c\" \/><label for=\"a05c\"> C\uff0eonLocationChanged Method<\/label><\/li>\n<li><input type=\"radio\" name=\"a05\" value=\"d\" \/><label for=\"a05d\"> D\uff0erequestLocationUpdates Method<\/label><\/li>\n<\/ol>\n<div class=\"question\">Android Framework &lt;2> &#8211; Multimedia &#8211; Audio Playback<br \/>\n<span class=\"q\">Q6. <\/span>Which of the following is the correct code used to play an audio file saved as an application resource? Assume that &#8220;file&#8221; represents the location of the file.\n<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a06\" value=\"a\" \/><label for=\"a06a\"> A\uff0e<\/label>\n<pre style=\"width:80%\">01:&nbsp;MediaPlayer&nbsp;mp&nbsp;=&nbsp;MediaPlayer.create(context,&nbsp;file); <br \/>02:&nbsp;mp.start(); <\/pre>\n<\/li>\n<li><input type=\"radio\" name=\"a06\" value=\"b\" \/><label for=\"a06b\"> B\uff0e<\/label>\n<pre style=\"width:80%\">01:&nbsp;MediaPlayer&nbsp;mp&nbsp;=&nbsp;MediaPlayer.create(context,&nbsp;file);<br \/>02:&nbsp;mp.prepare(); <br \/>03:&nbsp;mp.start(); <\/pre>\n<\/li>\n<li><input type=\"radio\" name=\"a06\" value=\"c\" \/><label for=\"a06c\"> C\uff0e<\/label>\n<pre style=\"width:80%\">01:&nbsp;MediaPlayer&nbsp;mp&nbsp;=&nbsp;new&nbsp;MediaPlayer();<br \/>02:&nbsp;mp.setDataSource(file); <br \/>03:&nbsp;mp.start(); <\/pre>\n<\/li>\n<li><input type=\"radio\" name=\"a06\" value=\"d\" \/><label for=\"a06d\"> D\uff0e<\/label>\n<pre style=\"width:80%\">01:&nbsp;MediaPlayer&nbsp;mp&nbsp;=&nbsp;new&nbsp;MediaPlayer(); <br \/>02:&nbsp;mp.setDataSource(file); <br \/>03:&nbsp;mp.prepare(); <br \/>04:&nbsp;mp.start(); <\/pre>\n<\/li>\n<\/ol>\n<div class=\"question\">Application Publishing &#8211; Application Management &#8211; Publishing applications to the GooglePlay<br \/>\n<span class=\"q\">Q7. <\/span>Which of the following is the correct condition for publishing to the GooglePlay?<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a07\" value=\"a\" \/><label for=\"a07a\"> A\uff0eThe expiration of a signed private key must be before October 22, 2033<\/label><\/li>\n<li><input type=\"radio\" name=\"a07\" value=\"b\" \/><label for=\"a07b\"> B\uff0eYou must include the attributes &#8220;android:versionCode&#8221; and &#8220;android:versionName&#8221; under the <manifest> tag in AndroidManifest.xml.<\/manifest><\/label><\/li>\n<li><input type=\"radio\" name=\"a07\" value=\"c\" \/><label for=\"a07c\"> C\uff0eYou must include either the attributes &#8220;android:icon&#8221; or the &#8220;android:label&#8221; under the <application> tag in AndroidManifest.xml.<\/application><\/label><\/li>\n<li><input type=\"radio\" name=\"a07\" value=\"d\" \/><label for=\"a07d\"> D\uff0eYou must include the attribute &#8220;android:minSdkVersion&#8221; under the <uses -sdk> tag in AndroidManifest.xml.<\/uses><\/label><\/li>\n<\/ol>\n<div class=\"question\">Application Publishing &#8211; Application Distribution &#8211; Signing an application<br \/><span class=\"q\">Q8. <\/span>Pick the correct answer regarding signing an application.<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a08\" value=\"a\" \/><label for=\"a08a\"> A\uff0eAn unsigned application cannot be run on either an Android device or the emulator.<\/label><\/li>\n<li><input type=\"radio\" name=\"a08\" value=\"b\" \/><label for=\"a08b\"> B\uff0eYou may only use a self-signed certificate during debugging.<\/label><\/li>\n<li><input type=\"radio\" name=\"a08\" value=\"c\" \/><label for=\"a08c\"> C\uff0eThe expiration of a signed certificate is checked when the Android application is run.<\/label><\/li>\n<li><input type=\"radio\" name=\"a08\" value=\"d\" \/><label for=\"a08d\"> D\uff0eWhen debugging on the Android emulator, the application need not be signed.<br \/>\n<\/label><\/li>\n<\/ol>\n<div class=\"question\">Supporting Functions &#8211; Development Functions &#8211; The sqlite3 command<br \/><span class=\"q\">Q9. <\/span>Pick the correct statement about the sqlite3 command included in the Android SDK.<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a09\" value=\"a\" \/><label for=\"a09a\"> A\uff0eSpecifying a filename to the &#8220;.execute&#8221; command will run the SQL contained in the file.<\/label><\/li>\n<li><input type=\"radio\" name=\"a09\" value=\"b\" \/><label for=\"a09b\"> B\uff0eThe &#8220;.show&#8221; command will display a list of database names and filenames.<\/label><\/li>\n<li><input type=\"radio\" name=\"a09\" value=\"c\" \/><label for=\"a09c\"> C\uff0eThe &#8220;.databases&#8221; command will display the CREATE statement for each table.\u3002<\/label><\/li>\n<li><input type=\"radio\" name=\"a09\" value=\"d\" \/><label for=\"a09d\"> D\uff0eThe &#8220;.dump&#8221; command displays the database table content in SQL format.<\/label><\/li>\n<\/ol>\n<div class=\"question\">Supporting Functions &#8211; Debugging Functions &#8211; The emulator<br \/><span class=\"q\">Q10. <\/span>Which of the following is not supported by the Android emulator?<\/div>\n<ol style=\"list-style-type:none\">\n<li><input type=\"radio\" name=\"a10\" value=\"a\" \/><label for=\"a10a\"> A\uff0eA sound chip with input and output functions<\/label><\/li>\n<li><input type=\"radio\" name=\"a10\" value=\"b\" \/><label for=\"a10b\"> B\uff0eMultiple keyboards<\/label><\/li>\n<li><input type=\"radio\" name=\"a10\" value=\"c\" \/><label for=\"a10c\"> C\uff0ePartitions in flash memory<\/label><\/li>\n<li><input type=\"radio\" name=\"a10\" value=\"d\" \/><label for=\"a10d\"> D\uff0eA 32-bit LCD display<\/label><\/li>\n<\/ol>\n<div align=\"center\"><input type=\"submit\" class=\"btn btn-success\" value=\"Evaluate\" \/><\/div>\n<\/form>\n<hr style=\"clear:both\" \/>\n<div align=\"center\">\n<div style=\"width:60%;\">\n<div class=\"alert alert-error\">\n<h4>\uff0aCaution\uff0a<\/h4>\n<p>This example is different from the actual exam questions.<\/p><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Android Application Basic ExaminationPractice test \u25a0\u3000For questions 1-10, read the question, select the answer, and when you are finished click the &#8220;Evaluate&#8221; button. Android Framework&lt;1> &#8211; System Architecture &#8211; API levelQ1. Pick the correct answer about the relationship between Android version and API Level. A\uff0eThe first version of Android (Android 1.0) had an API Level o&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/ace.it-casa.org\/en\/aceabout\/application-exam\/practice-test\/\">Read more \u2192<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":144,"menu_order":3210,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/pages\/157"}],"collection":[{"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":9,"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/pages\/157\/revisions"}],"predecessor-version":[{"id":456,"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/pages\/157\/revisions\/456"}],"up":[{"embeddable":true,"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/pages\/144"}],"wp:attachment":[{"href":"http:\/\/ace.it-casa.org\/en\/wp-json\/wp\/v2\/media?parent=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}