Firebase MCQ Questions And Answers
Firebase MCQs : This section focuses on "Basics" of Firebase. These Multiple Choice Questions (MCQ) should be practiced to improve the Firebase skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Firebase is a backend platform for building?
A. Web
B. Android
C. IOS
D. All of the above
View Answer
Ans : D
Explanation: Firebase is a backend platform for building Web, Android and IOS applications. It offers real time database, different APIs, multiple authentication types and hosting platform.
2. Which of the following is not an Firebase Advantages?
A. No need for complicated configuration.
B. The data is real-time
C. Firebase offers simple control dashboard
D. Firebase free plan is limited to 50 Connections
View Answer
Ans : D
Explanation: Firebase Limitations : Firebase free plan is limited to 50 Connections and 100 MB of storage.
3. The Firebase data is representing ________ objects.
A. SQL
B. Mongo
C. JSON
D. Javascript
View Answer
Ans : C
Explanation: The Firebase data is representing JSON objects.
4. Firebase Year of invention?
A. 2011
B. 2012
C. 2013
D. 2014
View Answer
Ans : B
Explanation: Year of invention: 2012–present
5. Founders of Firebase?
A. Google
B. James Tamplin
C. Donald D. Chamberlin
D. Raymond F. Boyce
View Answer
Ans : B
Explanation: Founders: James Tamplin, Andrew Lee
6. Which method will write or replace data on a specified path?
A. SET
B. GET
C. PUT
D. USE
View Answer
Ans : A
Explanation: The set method will write or replace data on a specified path.
7. Which method used to update the Firebase data?
A. alter
B. put
C. set
D. update
View Answer
Ans : D
Explanation: We can update the Firebase data using update command.
8. The ______________ method will create a unique id when the data is pushed.
A. pop()
B. key()
C. push()
D. unique()
View Answer
Ans : C
Explanation: The push() method will create a unique id when the data is pushed.
9. We can get any key from Firebase by using the ________ method.
A. key()
B. firebase.key()
C. fb.key()
D. firebase().key
View Answer
Ans : A
Explanation: We can get any key from Firebase by using the key() method.
10. If we want to get access of deleted data, we can use _________ event type.
A. value
B. child_added
C. child_changed
D. child_removed
View Answer
Ans : D
Explanation: If we want to get access of deleted data, we can use child_removed event type.
11. To authenticate a user, we can use the ?
A. createEmailAndPassword()
B. createUser()
C. createUserWithEmailAndPassword()
D. createWithEmailAndPassword()
View Answer
Ans : C
Explanation: To authenticate a user, we can use the createUserWithEmailAndPassword(email, password) method.
12. When we want to detach all callbacks, we can use : playersRef.off();
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, When we want to detach all callbacks, we can use : playersRef.off();
13. We can logout the user with the __________ method.
A. Exit()
B. signOut()
C. POP()
D. POPOUT()
View Answer
Ans : B
Explanation: we can logout the user with the signOut() method.
14. which of the following are correct filtering method in Firebase?
A. equalTo() method
B. endAt() method
C. startAt() method
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the filtering method in Firebase.
15. Which of the following is best practices for firebase?
A. Avoid Nesting Data
B. Denormalize Data
C. Both A and B
D. None of the above
View Answer
Ans : C
Explanation: Both A and B is best practices for firebase.
16. What is the full form of FCM in firebase?
A. Firebase Cloud Merge
B. Firebase Cloud Messaging
C. Flexible Cloud Messaging
D. None of the above
View Answer
Ans : B
Explanation: The full form of FCM in firebase is Firebase Cloud Messaging.
17. limitToFirst method returns the specified number of items beginning from the first one.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, limitToFirst method returns the specified number of items beginning from the first one.
18. How many types of Firebase Database Rule?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : C
Explanation: There are four types of Firebase Database Rule:read, write, validate and indexOn.
19. Which of the following ports not used by FCM?
A. 5228
B. 5229
C. 5230
D. 5231
View Answer
Ans : D
Explanation: 5231 ports not used by FCM.
20. Which API clears the saved Dynamic Link to prevent it from being accessed twice?
A. getInvitation API
B. get API
C. setInvitation API
D. set API
View Answer
Ans : A
Explanation: getInvitation API clears the saved Dynamic Link to prevent it from being accessed twice.
Discussion