firebase django 10 Flashcards
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
Which ORM is built into Django? a) Hibernate b) SQLAlchemy c) Django ORM d) VueFire
c) Django ORM
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
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
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
What Firebase service is used for real-time database interactions? a) Firestore b) Firebase Auth c) Firebase Functions d) Firebase Hosting
a) Firestore
Which Firebase feature provides authentication support for users? a) Firestore b) Firebase Functions c) Firebase Auth d) Firebase Hosting
c) Firebase Auth
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
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
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
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
Which Vue method works with Firestore to provide real-time syncing? a) onSnapshot b) ref c) Vuex d) watchEffect
a) onSnapshot
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
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
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
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
Which version of Firebase is more feature-rich and cheaper? a) Realtime Database b) Firestore c) Cloud Functions d) Firebase Hosting
b) Firestore
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
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
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
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
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
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
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
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
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
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
What method does Firestore use to provide real-time synchronization? a) onSnapshot b) get c) set d) update
a) onSnapshot
Which framework does VueFire help integrate with Firebase? a) React b) Angular c) Vue.js d) Ember.js
c) Vue.js
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
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
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
Which Firebase service is used for cloud-based file storage? a) Firestore b) Firebase Hosting c) Firebase Storage d) Firebase Functions
c) Firebase Storage
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
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
Which ORM is built into Django? a) Hibernate b) SQLAlchemy c) Django ORM d) VueFire
c) Django ORM
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
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
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
What Firebase service is used for real-time database interactions? a) Firestore b) Firebase Auth c) Firebase Functions d) Firebase Hosting
a) Firestore
Which Firebase feature provides authentication support for users? a) Firestore b) Firebase Functions c) Firebase Auth d) Firebase Hosting
c) Firebase Auth
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
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
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
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
Which Vue method works with Firestore to provide real-time syncing? a) onSnapshot b) ref c) Vuex d) watchEffect
a) onSnapshot
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
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
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
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
Which version of Firebase is more feature-rich and cheaper? a) Realtime Database b) Firestore c) Cloud Functions d) Firebase Hosting
b) Firestore
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
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
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
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
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
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
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
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
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
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
What method does Firestore use to provide real-time synchronization? a) onSnapshot b) get c) set d) update
a) onSnapshot
Which framework does VueFire help integrate with Firebase? a) React b) Angular c) Vue.js d) Ember.js
c) Vue.js
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
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
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
Which Firebase service is used for cloud-based file storage? a) Firestore b) Firebase Hosting c) Firebase Storage d) Firebase Functions
c) Firebase Storage
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