Freelancer Android Level 1 Exam quiz and Answers

i don't know whether it's wrong or right but i'm passed in the exam i have more then 180 quiz with answers but here i'm posting only 40 quiz with the answers. i will slowly update this post with quiz ans answers

Question 1 / 40
Android architecture is comprised of _________.
  • applications, application framework, libraries, Android runtime, Linux kernel
  • applications, telephony manager, libraries, Android runtime
  • applications, telephony manager, libraries, Linux kernel
  • applications, libraries, library framework, Android runtime, Linux kernel
  • telephony manager, libraries, Android runtime, Linux kernelc
Question 2 / 40
What is the name of the Java Virtual machine in Android?
  • Juke Virtual Machine
  • Parrot Virtual Machine
  • .NET Framework
  • Dalvik
  • Forth Virtual Machine
Question 3 / 40
Intent data structure is comprised of___________________.
  • resource data
  • manifest files
  • an action and data to act upon
  • AppWidget files
  • View Groups
Question 4 / 40
What does an Intent filter do?
  • describes Intent tasks
  • describes Intent multitasking capability
  • filters Intent activities
  • describes intent capability of an activity
  • filters crashed applications
Question 5 / 40
A Service _________________.
  • keeps running without the User interface
  • can run only when the User interface is active
  • None of these.
  • is used to handle incoming phone calls
  • is used to create user interface
Question 6 / 40
What are Android Events?
  • An Event is the opening of the User interface
  • None of these
  • Events are external activities
  • Events are resource of mobile device
  • Events are actions taken by the OS
Question 7 / 40
ViewGroups are ____________________.
  • an object of class android.view.Viewgroup
  • A class of View objects
  • a group of open UI windows
  • an object defined in AndroidManifest.xml
  • an object of class android.view.View
Question 8 / 40
How do you create a handle for a screen element?
  • call Activity.findViewById
  • Create a ListAdapter object
  • Give the ListAdapter to your ListView object.
  • use android.test
  • Create a Handler object in your UI thread
Question 9 / 40
An empty process does not have ______________________.
  • any resources.
  • active services.
  • active processes.
  • active application components
  • any memory allocated.
Question 10 / 40
What is an AVD?
  • A development environment.
  • A configuration that helps developing device drivers.
  • A configuration that runs Android applications.
  • A Graphical interface to create User interfaces
  • A configuration that specifies the Android platform to be used on the emulator
Question 11 / 40
Intent-based calls are usually bound at_________.
  • runtime
  • compile time and runtime
  • invocation
  • parse time
  • link time

Question 12 / 40
This is called every time an App Widget is deleted from the App Widget host:
  • onDisabled(Context)
  • onDeleted(Context, int[])
  • onReceive(Context, Intent)
  • onEnabled(Context)
  • onUpdate

Question 13 / 40
Styles, strings and arrays are placed in _______________.
  • /res/layout
  • /res/strings
  • /res/arrays
  • /res/styles
  • /res/values

Question 14 / 40
Dalvik VM is part of ____________________.
  • Core Libraries
  • Libraries
  • Application
  • kernel
  • Android Runtime

Question 15 / 40
Content providers are part of________________________.
  • Applications
  • Core libraries
  • Application Framework
  • kernel
  • libraries

Question 16 / 40
What is R.java?
  • an auto-generated file indexing all the ViewGroups of your project
  • an auto-generated file indexing all the Activities of your project
  • an file which gives information on the resources available
  • an auto-generated file indexing all the Services of your project
  • an auto-generated file indexing all the resources of your project

Question 17 / 40
A RemoteView object cannot support the following layout class: __________.
  • Viewlayout
  • LinearLayout
  • RelativeLayout
  • FrameLayout
  • All of these.

Question 18 / 40
What is Compound Button class?
  • specifies a button for switching mobile ON/OFF
  • None of these.
  • Specifies a button with 2 states: checked and unchecked
  • specifies a button with multiple functions
  • specifies Qwerty keyboard

Question 19 / 40
A view hierarchy is placed within an activity’s window by the _____________ method.
  • onCreate()
  • Activity.setServiceView()
  • Activity.setView()
  • android.app.Activity
  • Activity.setContentView()

Question 20 / 40
What does ‘+’ signify in android:id=”@+id/my_button”?
  • A new resource name.
  • A new resource name that must be created and added to resources.
  • The XML parser should parse the rest of the ID string.
  • A new Activity.
  • A new View resource.
Question 21 / 40
Which of the following is the immediate base class for Activity and Service classes?
  • ApplicationContext
  • Component
  • Object
  • Application
  • Context

Question 22 / 40
Which of the following would you have to include in your project to use the SimpleAdapter
class?
  • import android.widget;
  • import android.database;
  • import android.util;
  • import android.content;
  • import android.database.sqlite;

Question 23 / 40
Which of the following would you have to include in your project to use the APIs and classes
  • required to access the camera on the mobile device?
  • import android.drivers;
  • import android.hardware.camera;
  • import android.util;
  • import android.camera;
  • import android.hardware;

Question 24 / 40
Which of the following can you use to display a progress bar in an Android application?
  • ProgressItem
  • ProgressView
  • ProgressBar
  • requestWindowFeature
  • ProgressDialog

Question 25 / 40
What is Context used for?
  • To load UI
  • To load and access resources
  • To load and access Services
  • To load and access Activities
  • To load and access Layouts

Question 26 / 40
What does getApplicationContext() do?
  • Returns the path of the directory holding application cache files of the current process.
  • Returns the context of the Activity of the current process.
  • Returns the full application info for this context’s package.
  • Returns the context of the single, global Application object of the current process.
  • Returns an AssetManager

Question 27 / 40
setLevel specifies the level of __________.
  • Drawable.callback
  • Drawable
  • color
  • Image
  • Bitmap

Question 28 / 40
What is InputMethod ?
  • An interface which defines the method for data entry.
  • An interface which handles the UI interface.
  • An interface which handles keyboard input.
  • An interface which generates key events and text, while handling input events and sending text back to the application which requested text input.
  • An Interface which generates email data, while handling input events and sending it back
  • to the application which requested it.

Question 29 / 40
How do you save any unsaved data and release resources being used by an Android
application?
  • Activity.onDestroy()
  • Activity.onStop()
  • Activity.onPause()
  • Activity.onShutdown()
  • Activity.onFreeze()

Question 30 / 40
Which of the following can save the data of an Android application?
  • Activity.onFinish()
  • Activity.onStop()
  • Activity.onDestroy()
  • Activity.onPause()
  • Activity.onFreeze()
Question 31 / 40
What does this code snippet do?
menu.add(0, MENU_QUIT, 0, “Quit”).setIcon(R.drawable.menu_quit_icon)?
  • Adds an icon to Icon menu items
  • quits the Menu
  • Adds menu items
  • draws icon items
  • defines a Menu layout

Question 32 / 40
Define a Dialog.
  • a small TextBox.
  • a dropdown menu
  • a small window that appears in front of the current Activity.
  • a small window that appears in the user interface.
  • a small checkbox.

Question 33 / 40
Which API is directly related to touch mode?
  • View.TouchMode
  • View.app.Touch()
  • View.isInTouchMode()
  • View.TouchMode()
  • android.app.Touch()

Question 34 / 40
How a service can be stopped?
  • By calling its shutdown() method
  • By calling its finish() method
  • By calling finishService() method
  • By calling its stop() method
  • By calling its stopSelf() method

Question 35 / 40
What is the NotesDbAdapter Class?
  • adapts notes to a database
  • allows the user to creates notes
  • None of these.
  • provides a text editor
  • encapsulates data access to a SQLite database that will store notes data and facilitates to update it.

Question 36 / 40
How can a Service stop itself?
  • by calling Service.stopSelf()
  • by calling Context.stopService()
  • by calling StopSelf.Service()
  • by calling Destroy()
  • by calling StopService()

Question 37 / 40
When we want a result to be returned by a child activity, which method is used?
  • startActivity.Return()
  • startActivityForResult()
  • ActivityForResult()
  • startActivity.Result()
  • getResult.Activity()

Question 38 / 40
What does this code snippet do?
Intent callNumber = new Intent();
callNumber.setAction(android.content.Intent.ACTION_CALL);
callNumber.setData(Uri.parse(“tel:9873719580″));
startActivity(callNumber);
?
  • stores number 9873719580
  • calls number 9873719580
  • Any of these
  • searches number 9873719580
  • deletes number 9873719580 from memory

Question 39 / 40
TimePickerDialog allows user to ___________________.
  • select a time
  • set date
  • set date and time
  • set time
  • select a date

Question 40 / 40
Which of the following is used to handle commands from menu items in an application?
  • onMenuItem
  • onMenuItemSelected
  • onMenuItemClicked
  • onOptionsItemSelected
  • CommandAction

Thank you for using our service.

Freelancer Android Level 1 Exam quiz and Answers

i don't know whether it's wrong or right but i'm passed in the exam i have more then 180 quiz with answers but here i'm posting only 40 quiz with the answers. i will slowly update this post with quiz ans answers

How to unlock pattern in android phone or tablet with ADB



when you fail to unlock the android tablet if you failed to unlock it will lock your device at the time use this codes to unlock your device without any trouble .it's really worked for my tablet  




go to android adb.exe folder in the command line it's in adt-bundle-windows-x86-20140321\sdk\platform-tools the type these commands

  • adb devices (verify device is identified by pc. If not reconnect device and try again. it should display “device” with a serial no)
  • adb shell
  • cd /data/data/com.android.providers.settings/databases
  • sqlite3 settings.db
  • update system set value=0 where name='lock_pattern_autolock';
  • update secure set value=0 where name='lock_pattern_autolock'; (for some devices update “system” is enough but I had to update “secure” too)
  • update system set value=0 where name='lockscreen.lockedoutpermanently';
  • update secure set value=0 where name='lockscreen.lockedoutpermanently';
  • .quit
  • exit
  • adb reboot

How to unlock pattern in android phone or tablet with ADB



when you fail to unlock the android tablet if you failed to unlock it will lock your device at the time use this codes to unlock your device without any trouble .it's really worked for my tablet  


Microsoft finally committing to open source

Microsoft is known for keeping its programming secrets to itself. But under CEO Satya Nadella, the maker of proprietary behemoths like Windows and Microsoft Office is starting to show up in the world of open-source software, whose code is public for anyone to see, borrow from and tinker with.


Late last year Microsoft finally made itself an account on Github, now the de-facto platform that software writers use for sharing and working on open-source code. “Microsoft has changed as a company and is becoming more open in the way that we collaborate with others,” the account’s description reads.

Microsoft has actually been doing open source in some capacity for a while. It releases many open-source projects on its own CodePlex platform, though this is far less popular than GitHub. It has also had a scattered presence on GitHub for some time: MS Open Tech, a wholly-owned Microsoft subsidiary that works with open source, has its own account, as does Microsoft’s Azure cloud-computing platform.

But the company as a whole has never been as fully committed to it as big-tech peers like Google and Facebook. (Apple, though, is similarly reticent.) And never has the entire organization’s commitment to open source been so explicit.
+
This might just be the beginning of Microsoft’s efforts. It is already starting to open-source parts of its widely used .NET software framework, seeing how greatly competitor systems like Java have benefitted from letting outsiders poke around in their code.

The open-source push suggests that Microsoft, once a behemoth, is starting to understand that it is now the underdog and can’t do everything on its own. That is even more true now that the company is cutting 18,000 jobs.

Still, opacity is so ingrained into Microsoft culture that any open-source push will take time. Take .NET, for example. “The majority of the worldwide .NET developer community is nervous about open source due to years of conditioning from Microsoft that open source is bad, dangerous, and anti-commercial,” wrote Sam Ramji, formerly head of open-source strategy at Microsoft, in a recent blog post. “We started trying to change that message seven years ago, and made a little progress, but even today there is a long, long way to go.”

Microsoft has indeed had a slow start on GitHub. It didn’t actually add any code to its account until last month, several months after the account was created. So far only one Microsoft project—its TypeScript programming language—is being shared on the platform.

Microsoft finally committing to open source

Microsoft is known for keeping its programming secrets to itself. But under CEO Satya Nadella, the maker of proprietary behemoths like Windows and Microsoft Office is starting to show up in the world of open-source software, whose code is public for anyone to see, borrow from and tinker with.

Facebook introduces a new bookmarking feature "Save" to help tame your News Feed



it only happens when you’re in a hurry. You launch Facebook to quickly see what your friends are up to and see something you actually have an interest in exploring. Facebook is making it easier to save those posts with a new bookmarking feature.


Today, Facebook introduced Save for Web and mobile. The new feature acts as a bookmark for items you find interesting such as links, places, movies, TV shows and music. The saved items can be accessed later for viewing on the Web or on your mobile device. Plus, you can share any items you’ve Saved with your Facebook friends.





To access the Saved items on the Web, just click on the Saved feature on the left-hand side of your News Feed. On mobile click on the more tab. Saved items are organized by category and can be opened, shared, or archived. If you save something and forget about it, Facebook will periodically notify you that you have items you found interesting at one point.

The new feature, like almost all components of the social network is to keep you inside Facebook. Instead of saving items to Pinterest, Instapaper, Pocket, or other read-it-later services, you can use Facebook as a bookmarking service. It’s also a good way to keep track of restaurants and stores you may want to visit. With reviews already part of a business’s Facebook page, this could be bad news for Yelp.

Save will start rolling out to Android, iOS and the Web over the next few days

Facebook introduces a new bookmarking feature "Save" to help tame your News Feed



it only happens when you’re in a hurry. You launch Facebook to quickly see what your friends are up to and see something you actually have an interest in exploring. Facebook is making it easier to save those posts with a new bookmarking feature.

One Click Public Assistant

The Issue 

Modern fast life has reduced the quality time that people used to spend to monitor and safeguard the neighbours and the environment around their neighbourhood in a day-to-day manner. In a country like Sri Lanka, where multiple languages are spoken and people are not fully conversant in language other than their mother tongue, this also poses problems in clearly explaining the problem or the incident to the authorities. On the other hand service providers too, find it difficult to locate the exact location of the place where their service is needed because at many occasions compliant is also not well aware of the locations of the incidents and are unable to guide the officers to the exact location. Inability to report such incidents on time can claim many valuable lives and will seriously harm many precious natural resources of the country. 

One such consequence, which we can witness today around, is the epidemic city of Dengue fever in all districts of Sri Lanka including the capital city of Colombo, which has already claimed many valuable lives. Therefore, there needs to be an effective and efficient system is available for public to report any incidents of common benefit for the betterment of life. 

According to the Epidemiology Unit, Ministry of Health Report During the last 6 months of the year 2014, 18542 suspected dengue cases have been reported to the Epidemiology Unit from all over the island. Approximately 58.97% of dengue cases were reported from the Western province. The highest numbers of dengue cases were reported during the twenty fifth week of 2014.This situation warrants regular removal of possible mosquito breeding sites from the environment.


The Solution 

OCPA (One Click Public Assistant) is a location based reporting system integrated with a social media-based mobile application to ease and expedite the public services issues reporting and claims process.

 The main purpose of this system is expediting the public service process with accurate record and facilitates the appropriate parties who are interest on the particular problem / issue. This system helps us to report incidents in less time and the public do not need to be in the queue to complain about their incidents. Also, they can review the more focused solution taken by the authority for a particular incident. The most important thing is within a second the public can easily see what is happening around them and anyone can from the any part of the world crowd-sourcing for dengue surveillance. So, this application enables us to reduce the paper work and helps related parties to benefit. 

OCPA will allow everyone to share they experience through social networking tools including Facebook and Google Cloud message service and guard the society from epidemic diseases.


How This Solution is Possible?

  •  87% people in the world and 80.95% people in Sri lanka use mobile phone

  •  Volunteers are like a Gem difficult to find but there are some peoples wish to serve but they don¡¦t have a much time

  • Social media's are popular because of sharing and smart phone access

  • Mobile computing is now playing a big role in the world. Mobile government services are available in many counties


The Implementation 

This system proposed for the Motorola/Slasscom inter university innovation championship-2013 on march 2013 , developed for the December 2013 final and won 3rd place.


The System 

  • A user reports an incident (written as per the App¡¦s current design)

  • Take the phone (out) & resume

  • Unlock the screen 

  • Tap Applications icon

  • Navigate to OCPS app

  • Launch the app by tapping

  • If first time Register and Login

  • Tap on the main screen to bring up the buttons

  • Tap on Report button

  • Take photo by tapping the camera button

  •  Enter description of the photo/action requested

  •  Tap Send button 

Now the system will have the Report Image with the geo-location , small description and category of issue . through these information system will forward the report to the appropriate authority according to the area and category . authority want to reply for that issue within small amount of period otherwise system will display the particular issue in the wap and send to social media's as a highlighted issue in order to make public pressure and media focus on particular issue but at the same time user also can report share issue to OCPA a mean time to social media like Facebook also in order to make crowd-sourcing.


Application https://play.google.com/store/apps/details?id=com.Rajjaz.OCPS

One Click Public Assistant

The Issue 

Modern fast life has reduced the quality time that people used to spend to monitor and safeguard the neighbours and the environment around their neighbourhood in a day-to-day manner. In a country like Sri Lanka, where multiple languages are spoken and people are not fully conversant in language other than their mother tongue, this also poses problems in clearly explaining the problem or the incident to the authorities.