Question 6 of 228
What does the following line of code achieve?
Intent intent = new Intent(FirstActivity.this, SecondActivity.class );
    Correct Answer: C

    The line of code in question 'Intent intent = new Intent(FirstActivity.this, SecondActivity.class);' creates an explicit intent. An explicit intent specifies the exact component inside the app that should be launched. In this case, it indicates that the activity 'SecondActivity' should be launched from 'FirstActivity'. Options C and D are indeed identical, so either would be correct.

Question 7 of 228
Which of the following is NOT a valid usage for Intents?
    Correct Answer: D

    Intents in Android are used to activate components such as Activities, Services, and Broadcast receivers. Intents are not used for activating or managing SQLite database connections. Database connections are typically managed using classes like SQLiteOpenHelper and ContentProvider.

Question 8 of 228
Which of the following is not a valid Android resource file name?
    Correct Answer: B

    In Android, resource file names must adhere to specific naming conventions. They must be in lowercase, cannot contain capital letters or spaces, and can only include letters, numbers, and underscores. The option 'myLayout.xml' is invalid because it contains a capital letter 'L'. Therefore, 'myLayout.xml' is not a valid Android resource file name.

Question 9 of 228
Which of these is not defined as a process state?
    Correct Answer: A

    In the context of process states, typical states include foreground, background, visible, and non-visible. Foreground processes are actively interacting with the user, background processes are running but not currently interacting with the user, and visible processes are visible to the user but not in the foreground. Non-visible processes refer to those not seen by the user. 'Non-visible' and 'visible' are more related to the visibility state rather than a direct process state terminology, making 'Non-visible' not a standard process state.

Question 10 of 228
What is the name of the folder that contains the R.java file?
    Correct Answer: D

    The R.java file in an Android project is automatically generated and placed in the 'gen' folder. This file is used to reference resources like strings, layouts, and drawables in the project. Therefore, the correct answer is 'gen'.