AND-401

AND-401 practice questions, page 2 of 9, with answer review and explanations.

Question 6

What does the following line of code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class );

  1. Creates a hidden Intent
  2. Creates an implicit Intent
  3. Create an explicit Intent
  4. Create an explicit Intent

Question 7

Which of the following is NOT a valid usage for Intents?

  1. Activate and Activity
  2. Activate a Service
  3. Activate a Broadcast receiver
  4. Activate a SQLite DB Connection.

Question 8

Which of the following is not a valid Android resource file name?

  1. mylayout.xml
  2. myLayout.xml
  3. my_layout.xml
  4. mylayout1.xml

Question 9

Which of these is not defined as a process state?

  1. Non-visible
  2. Visible
  3. Foreground
  4. Background

Question 10

What is the name of the folder that contains the R.java file?

  1. src
  2. res
  3. bin
  4. gen