Java Programming Language Flashcards

1
Q

What is the primary language for Android app development?

A

Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define an ‘Activity’ in Android development.

A

An Activity represents a single screen with a user interface.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is ‘Intent’ used for in Android apps?

A

Intent is used to request an action from an app component.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you start a new activity using Intent in Java?

A

Intent intent = new Intent(this, NewActivity.class); startActivity(intent);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of an XML layout file in Android?

A

It specifies the UI design for activities and fragments.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you link a Java file to an XML layout file in Android?

A

Using setContentView(R.layout.activity_main); in the onCreate method.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the AndroidManifest.xml file used for?

A

It declares app permissions and essential app metadata.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Explain how to handle user input in Android.

A

Use findViewById() to access UI elements and setOnClickListener() for button clicks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe the lifecycle of an Android activity.

A

It includes onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy().

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you save data persistently in Android apps?

A

Use SharedPreferences, SQLite databases, or file storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Sample question 11

A

Sample answer 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Sample question 12

A

Sample answer 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Sample question 13

A

Sample answer 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Sample question 14

A

Sample answer 14

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Sample question 15

A

Sample answer 15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Sample question 16

A

Sample answer 16

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Sample question 17

A

Sample answer 17

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Sample question 18

A

Sample answer 18

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Sample question 19

A

Sample answer 19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Sample question 20

A

Sample answer 20

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Sample question 21

A

Sample answer 21

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Sample question 22

A

Sample answer 22

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Sample question 23

A

Sample answer 23

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Sample question 24

A

Sample answer 24

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Sample question 25

A

Sample answer 25

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Sample question 26

A

Sample answer 26

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Sample question 27

A

Sample answer 27

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Sample question 28

A

Sample answer 28

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Sample question 29

A

Sample answer 29

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Sample question 30

A

Sample answer 30

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Sample question 31

A

Sample answer 31

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Sample question 32

A

Sample answer 32

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Sample question 33

A

Sample answer 33

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Sample question 34

A

Sample answer 34

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Sample question 35

A

Sample answer 35

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Sample question 36

A

Sample answer 36

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Sample question 37

A

Sample answer 37

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Sample question 38

A

Sample answer 38

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Sample question 39

A

Sample answer 39

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

Sample question 40

A

Sample answer 40

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Sample question 41

A

Sample answer 41

42
Q

Sample question 42

A

Sample answer 42

43
Q

Sample question 43

A

Sample answer 43

44
Q

Sample question 44

A

Sample answer 44

45
Q

Sample question 45

A

Sample answer 45

46
Q

Sample question 46

A

Sample answer 46

47
Q

Sample question 47

A

Sample answer 47

48
Q

Sample question 48

A

Sample answer 48

49
Q

Sample question 49

A

Sample answer 49

50
Q

Sample question 50

A

Sample answer 50

51
Q

Sample question 51

A

Sample answer 51

52
Q

Sample question 52

A

Sample answer 52

53
Q

Sample question 53

A

Sample answer 53

54
Q

Sample question 54

A

Sample answer 54

55
Q

Sample question 55

A

Sample answer 55

56
Q

Sample question 56

A

Sample answer 56

57
Q

Sample question 57

A

Sample answer 57

58
Q

Sample question 58

A

Sample answer 58

59
Q

Sample question 59

A

Sample answer 59

60
Q

Sample question 60

A

Sample answer 60

61
Q

Sample question 61

A

Sample answer 61

62
Q

Sample question 62

A

Sample answer 62

63
Q

Sample question 63

A

Sample answer 63

64
Q

Sample question 64

A

Sample answer 64

65
Q

Sample question 65

A

Sample answer 65

66
Q

Sample question 66

A

Sample answer 66

67
Q

Sample question 67

A

Sample answer 67

68
Q

Sample question 68

A

Sample answer 68

69
Q

Sample question 69

A

Sample answer 69

70
Q

Sample question 70

A

Sample answer 70

71
Q

Sample question 71

A

Sample answer 71

72
Q

Sample question 72

A

Sample answer 72

73
Q

Sample question 73

A

Sample answer 73

74
Q

Sample question 74

A

Sample answer 74

75
Q

Sample question 75

A

Sample answer 75

76
Q

Sample question 76

A

Sample answer 76

77
Q

Sample question 77

A

Sample answer 77

78
Q

Sample question 78

A

Sample answer 78

79
Q

Sample question 79

A

Sample answer 79

80
Q

Sample question 80

A

Sample answer 80

81
Q

Sample question 81

A

Sample answer 81

82
Q

Sample question 82

A

Sample answer 82

83
Q

Sample question 83

A

Sample answer 83

84
Q

Sample question 84

A

Sample answer 84

85
Q

Sample question 85

A

Sample answer 85

86
Q

Sample question 86

A

Sample answer 86

87
Q

Sample question 87

A

Sample answer 87

88
Q

Sample question 88

A

Sample answer 88

89
Q

Sample question 89

A

Sample answer 89

90
Q

Sample question 90

A

Sample answer 90

91
Q

Sample question 91

A

Sample answer 91

92
Q

Sample question 92

A

Sample answer 92

93
Q

Sample question 93

A

Sample answer 93

94
Q

Sample question 94

A

Sample answer 94

95
Q

Sample question 95

A

Sample answer 95

96
Q

Sample question 96

A

Sample answer 96

97
Q

Sample question 97

A

Sample answer 97

98
Q

Sample question 98

A

Sample answer 98

99
Q

Sample question 99

A

Sample answer 99

100
Q

Sample question 100

A

Sample answer 100