└── README.md /README.md: -------------------------------------------------------------------------------- 1 | ## MCQ React Native Interview Questions and Answers 2 | 3 | 4 | #### 1. Which of these React native components will be used to display the name="React Native Tutorial"? 5 | - View 6 | - Text 7 | - span 8 | - p 9 |
10 | Correct Answer- 11 | 12 | 13 |
14 | 15 | 16 | #### 2. Which of the following components is the optimized way to show a long list of data? 17 | - View 18 | - Scrollview 19 | - Safeareaview 20 | - Flatlist 21 |
22 | Correct Answer- 23 | 24 | 25 |
26 | 27 | 28 | #### 3. How do you style your React Native component? 29 | - Stylesheet.create 30 | - Stylesheet.css 31 | - Safeareaview 32 | - Flatlist 33 |
34 | Correct Answer- 35 | 36 | Stylesheet.create 37 |
38 | 39 | #### 4. Which of the following is the correct plugin to navigate from one screen to another? 40 | - React Hooks 41 | - React Navigation 42 | - React Router 43 | - Screen 44 |
45 | Correct Answer- 46 | 47 | React Navigation 48 |
49 | 50 | #### 5. Which of the following is the correct way to render a webpage. 51 | Eg. render the homepage of https://www.amazon.com/ in React Native ? 52 | - React Native webview 53 | - React Native HTML 54 | - View 55 | - ScrollView 56 |
57 | Correct Answer- 58 | 59 | React Native webview 60 |
61 | 62 | #### 6. Which of the following is the correct method(hook) to make an api call on page load? 63 | - useState 64 | - useEffect 65 | - useReducer 66 | - useSelector 67 |
68 | Correct Answer- 69 | 70 | useEffect 71 |
72 | 73 | #### 7. Which of the following is used to make sure that your input fields don't hide behind the keyboard? 74 | - Keyboardavoidingview 75 | - Keyboardview 76 | - View 77 | - Scrollview 78 |
79 | Correct Answer- 80 | 81 | Keyboardavoidingview 82 |
83 | 84 | #### 8. Which of the following is used to color the status bar of the app in android? 85 | - 86 | - 87 | - 88 | - 89 |
90 | Correct Answer- 91 | 92 | 93 |
94 | 95 | #### 9. What is the use case of ActivityIndicator in React Native? 96 | - To display a circular loading activity 97 | - To display a progress bar activity 98 | - To open the app 99 | - To exit the app 100 |
101 | Correct Answer- 102 | 103 | To display a circular loading activity 104 |
105 | 106 | #### 9. What is the use case of ActivityIndicator in React Native? 107 | - To display a circular loading activity 108 | - To display a progress bar activity 109 | - To open the app 110 | - To exit the app 111 |
112 | Correct answer- 113 | 114 | To display a circular loading activity 115 |
116 | 117 | #### 10. How do we detect platforms in React Native? 118 | - Platform.OS 119 | - Phone.OS 120 | - Dimension.OS 121 | - RN.OS 122 |
123 | Correct answer- 124 | 125 | Platform.OS 126 |
127 | 128 | #### 11. Which of the following is the correct way to store data in a local device? 129 | - Asyncstorage 130 | - Localstorage 131 | - Sessionstorage 132 | - RNStorage 133 |
134 | Correct answer- 135 | 136 | Asyncstorage 137 |
138 | 139 | #### 12. Which of the following comes under dangerous permission in Android? 140 | - Read SMS 141 | - Ask Location 142 | - Show notification 143 | - Internet access 144 |
145 | Correct answer- 146 | 147 | Read SMS 148 |
149 | 150 | #### 13. What is the correct way to read SMS for OTP? 151 | - Ask for sms read permission 152 | - Use the SMS retriever api 153 | - Use firebase 154 | - Ask of location permission 155 |
156 | Correct answer- 157 | 158 | Ask for sms read permission 159 |
160 | 161 | #### 14. Which of the following is not a valid event listener? 162 | - onClick 163 | - onChange 164 | - onType 165 | - onPress 166 |
167 | Correct answer- 168 | 169 | onType 170 |
171 | 172 | #### 15. Which of the following is not a valid component in React Native? 173 | - 174 | - 175 | -
176 | - 177 |
178 | Correct answer- 179 | 180 |
181 |
182 | 183 | #### 16. Which of the following React Native components we cannot style? 184 | - 185 | - 186 | - 187 | -