firebase django 10 Flashcards

1
Q

What is the purpose of Object-Relational Mapping (ORM)? a) Convert SQL queries to Python code b) Map objects in your code to persistent storage structures c) Convert HTML to CSS d) Handle authentication

A

b) Map objects in your code to persistent storage structures

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

Which ORM is built into Django? a) Hibernate b) SQLAlchemy c) Django ORM d) VueFire

A

c) Django ORM

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

What is a downside of using ORM? a) Developers may write inefficient code unintentionally b) It is always faster than raw SQL c) It automatically optimizes database queries d) It is not widely supported

A

a) Developers may write inefficient code unintentionally

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

What does Django use for creating and handling database migrations? a) VueFire b) makemigrations and migrate c) Django ORM d) SQLAlchemy

A

b) makemigrations and migrate

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

What is the benefit of using Firebase for app development? a) It is a fully serverless backend b) It is primarily for static sites c) It does not support mobile apps d) It does not require an internet connection

A

a) It is a fully serverless backend

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

What Firebase service is used for real-time database interactions? a) Firestore b) Firebase Auth c) Firebase Functions d) Firebase Hosting

A

a) Firestore

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

Which Firebase feature provides authentication support for users? a) Firestore b) Firebase Functions c) Firebase Auth d) Firebase Hosting

A

c) Firebase Auth

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

Which of the following is a key advantage of using Firestore with Vue.js? a) It supports real-time updates b) It uses SQL for querying c) It requires no internet connection d) It uses React Native components

A

a) It supports real-time updates

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

How do we integrate Firebase with Vue.js? a) Use the Firebase SDK directly b) Use the VueFire library c) Use the Firebase Authentication library d) Use Axios for API calls

A

b) Use the VueFire library

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

What does the onSnapshot method in Firestore allow you to do? a) Perform CRUD operations b) Set up database rules c) Listen for real-time updates on a collection or document d) Deploy to Firebase hosting

A

c) Listen for real-time updates on a collection or document

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

What does Vue’s ref function do in Vue 3? a) It creates a reactive reference to a value b) It sets up a lifecycle hook c) It handles form validation d) It binds data to an HTML element

A

a) It creates a reactive reference to a value

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

Which Vue method works with Firestore to provide real-time syncing? a) onSnapshot b) ref c) Vuex d) watchEffect

A

a) onSnapshot

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

Which of the following Firebase services is used for serverless computing? a) Firebase Auth b) Cloud Functions c) Firestore d) Firebase Hosting

A

b) Cloud Functions

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

What does the firebase.initializeApp() function do? a) Initializes the Firestore database b) Sets up Firebase authentication c) Initializes Firebase app with configuration settings d) Deploys the Firebase app

A

c) Initializes Firebase app with configuration settings

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

What is the main advantage of Firebase over traditional backends? a) It offers serverless infrastructure b) It requires minimal code c) It doesn’t require any third-party APIs d) It doesn’t have database storage

A

a) It offers serverless infrastructure

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

Which of the following Firebase features helps with mobile app testing? a) Firebase A/B Testing b) Firebase Hosting c) Firebase Realtime Database d) Firebase Analytics

A

a) Firebase A/B Testing

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

Which version of Firebase is more feature-rich and cheaper? a) Realtime Database b) Firestore c) Cloud Functions d) Firebase Hosting

A

b) Firestore

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

What type of application is Vue.js best suited for? a) Backend systems b) Single-page applications c) Mobile applications d) Multi-threaded applications

A

b) Single-page applications

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

Which of the following is a common use case for Firebase Authentication? a) Database querying b) User registration and login c) Real-time data syncing d) Cloud file storage

A

b) User registration and login

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

Which of the following best describes Django’s architecture? a) Model-View-Controller b) Model-View-ViewModel c) Model-View-Template d) View-Model-Controller

A

c) Model-View-Template

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

Which is a built-in feature of Django for interacting with a database? a) Migrations b) SQL queries c) NoSQL support d) API endpoints

A

a) Migrations

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

How does Django handle authentication? a) Using Firebase b) Using Django Auth system c) With custom authentication logic d) Through third-party modules

A

b) Using Django Auth system

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

Which of the following is a key difference between Firestore and Firebase Realtime Database? a) Firestore supports offline data handling b) Firestore stores data in documents and collections c) Firebase Realtime Database is a NoSQL solution d) Both databases support real-time synchronization

A

b) Firestore stores data in documents and collections

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

What kind of updates does Firebase’s onSnapshot provide? a) One-time updates b) Event-driven updates c) Real-time data updates d) Batch updates

A

c) Real-time data updates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the command to start the Django development server? a) python manage.py runserver b) python startserver c) run django d) django run
a) python manage.py runserver
26
What is Django’s built-in system for creating a new application in a project? a) startproject b) startapp c) createapp d) initproject
b) startapp
27
Which library in Firebase helps to integrate with Vue.js for real-time updates? a) VueFire b) Axios c) Firebase Auth d) Firestore SDK
a) VueFire
28
What method does Firestore use to provide real-time synchronization? a) onSnapshot b) get c) set d) update
a) onSnapshot
29
Which framework does VueFire help integrate with Firebase? a) React b) Angular c) Vue.js d) Ember.js
c) Vue.js
30
What is Firebase Hosting primarily used for? a) Real-time database storage b) Hosting web and mobile apps c) Authentication services d) Cloud storage
b) Hosting web and mobile apps
31
How does VueFire improve the integration between Firebase and Vue? a) By automatically handling database queries b) By providing a reactive connection between Firestore and Vue c) By adding advanced query capabilities d) By simplifying user authentication
b) By providing a reactive connection between Firestore and Vue
32
What is the initial setup step to integrate Firebase with Vue? a) Install VueFire b) Create a Firebase project c) Install Firebase SDK d) Add Firebase config to Vue app
b) Create a Firebase project
33
Which Firebase service is used for cloud-based file storage? a) Firestore b) Firebase Hosting c) Firebase Storage d) Firebase Functions
c) Firebase Storage
34
How do you manage real-time data updates from Firebase to your Vue app? a) Use `v-model` b) Use Vuex store c) Use Firestore's `onSnapshot` method d) Use a custom function
c) Use Firestore's `onSnapshot` method
35
What is the purpose of Object-Relational Mapping (ORM)? a) Convert SQL queries to Python code b) Map objects in your code to persistent storage structures c) Convert HTML to CSS d) Handle authentication
b) Map objects in your code to persistent storage structures
36
Which ORM is built into Django? a) Hibernate b) SQLAlchemy c) Django ORM d) VueFire
c) Django ORM
37
What is a downside of using ORM? a) Developers may write inefficient code unintentionally b) It is always faster than raw SQL c) It automatically optimizes database queries d) It is not widely supported
a) Developers may write inefficient code unintentionally
38
What does Django use for creating and handling database migrations? a) VueFire b) makemigrations and migrate c) Django ORM d) SQLAlchemy
b) makemigrations and migrate
39
What is the benefit of using Firebase for app development? a) It is a fully serverless backend b) It is primarily for static sites c) It does not support mobile apps d) It does not require an internet connection
a) It is a fully serverless backend
40
What Firebase service is used for real-time database interactions? a) Firestore b) Firebase Auth c) Firebase Functions d) Firebase Hosting
a) Firestore
41
Which Firebase feature provides authentication support for users? a) Firestore b) Firebase Functions c) Firebase Auth d) Firebase Hosting
c) Firebase Auth
42
Which of the following is a key advantage of using Firestore with Vue.js? a) It supports real-time updates b) It uses SQL for querying c) It requires no internet connection d) It uses React Native components
a) It supports real-time updates
43
How do we integrate Firebase with Vue.js? a) Use the Firebase SDK directly b) Use the VueFire library c) Use the Firebase Authentication library d) Use Axios for API calls
b) Use the VueFire library
44
What does the `onSnapshot` method in Firestore allow you to do? a) Perform CRUD operations b) Set up database rules c) Listen for real-time updates on a collection or document d) Deploy to Firebase hosting
c) Listen for real-time updates on a collection or document
45
What does Vue's `ref` function do in Vue 3? a) It creates a reactive reference to a value b) It sets up a lifecycle hook c) It handles form validation d) It binds data to an HTML element
a) It creates a reactive reference to a value
46
Which Vue method works with Firestore to provide real-time syncing? a) onSnapshot b) ref c) Vuex d) watchEffect
a) onSnapshot
47
Which of the following Firebase services is used for serverless computing? a) Firebase Auth b) Cloud Functions c) Firestore d) Firebase Hosting
b) Cloud Functions
48
What does the `firebase.initializeApp()` function do? a) Initializes the Firestore database b) Sets up Firebase authentication c) Initializes Firebase app with configuration settings d) Deploys the Firebase app
c) Initializes Firebase app with configuration settings
49
What is the main advantage of Firebase over traditional backends? a) It offers serverless infrastructure b) It requires minimal code c) It doesn’t require any third-party APIs d) It doesn’t have database storage
a) It offers serverless infrastructure
50
Which of the following Firebase features helps with mobile app testing? a) Firebase A/B Testing b) Firebase Hosting c) Firebase Realtime Database d) Firebase Analytics
a) Firebase A/B Testing
51
Which version of Firebase is more feature-rich and cheaper? a) Realtime Database b) Firestore c) Cloud Functions d) Firebase Hosting
b) Firestore
52
What type of application is Vue.js best suited for? a) Backend systems b) Single-page applications c) Mobile applications d) Multi-threaded applications
b) Single-page applications
53
Which of the following is a common use case for Firebase Authentication? a) Database querying b) User registration and login c) Real-time data syncing d) Cloud file storage
b) User registration and login
54
Which of the following best describes Django's architecture? a) Model-View-Controller b) Model-View-ViewModel c) Model-View-Template d) View-Model-Controller
c) Model-View-Template
55
Which is a built-in feature of Django for interacting with a database? a) Migrations b) SQL queries c) NoSQL support d) API endpoints
a) Migrations
56
How does Django handle authentication? a) Using Firebase b) Using Django Auth system c) With custom authentication logic d) Through third-party modules
b) Using Django Auth system
57
Which of the following is a key difference between Firestore and Firebase Realtime Database? a) Firestore supports offline data handling b) Firestore stores data in documents and collections c) Firebase Realtime Database is a NoSQL solution d) Both databases support real-time synchronization
b) Firestore stores data in documents and collections
58
What kind of updates does Firebase's `onSnapshot` provide? a) One-time updates b) Event-driven updates c) Real-time data updates d) Batch updates
c) Real-time data updates
59
What is the command to start the Django development server? a) python manage.py runserver b) python startserver c) run django d) django run
a) python manage.py runserver
60
What is Django’s built-in system for creating a new application in a project? a) startproject b) startapp c) createapp d) initproject
b) startapp
61
Which library in Firebase helps to integrate with Vue.js for real-time updates? a) VueFire b) Axios c) Firebase Auth d) Firestore SDK
a) VueFire
62
What method does Firestore use to provide real-time synchronization? a) onSnapshot b) get c) set d) update
a) onSnapshot
63
Which framework does VueFire help integrate with Firebase? a) React b) Angular c) Vue.js d) Ember.js
c) Vue.js
64
What is Firebase Hosting primarily used for? a) Real-time database storage b) Hosting web and mobile apps c) Authentication services d) Cloud storage
b) Hosting web and mobile apps
65
How does VueFire improve the integration between Firebase and Vue? a) By automatically handling database queries b) By providing a reactive connection between Firestore and Vue c) By adding advanced query capabilities d) By simplifying user authentication
b) By providing a reactive connection between Firestore and Vue
66
What is the initial setup step to integrate Firebase with Vue? a) Install VueFire b) Create a Firebase project c) Install Firebase SDK d) Add Firebase config to Vue app
b) Create a Firebase project
67
Which Firebase service is used for cloud-based file storage? a) Firestore b) Firebase Hosting c) Firebase Storage d) Firebase Functions
c) Firebase Storage
68
How do you manage real-time data updates from Firebase to your Vue app? a) Use `v-model` b) Use Vuex store c) Use Firestore's `onSnapshot` method d) Use a custom function
c) Use Firestore's `onSnapshot` method