Online Student Exam

⚠️ SETUP REQUIRED: Before publishing, add your Firebase credentials to the JavaScript code at the bottom. See instructions section below.

Instructions for Students: Enter your name below, answer all questions, and click “Submit Exam” to submit your responses and download a copy.

Question 1

What is 2 + 2?






Question 2

What is the capital of France?






Question 3

What is the largest planet in our solar system?







Option C: Use R to Read Firebase

# Install firebase package
# install.packages("firebase")

library(firebase)
library(jsonlite)

# Read directly from Firebase
url <- "https://your-project.firebaseio.com/exam_responses.json"
responses <- fromJSON(url)
df <- as.data.frame(responses)
write.csv(df, "exam_responses.csv")

Advantages of Firebase

No CORS issues - works perfectly on RPubs
Real-time updates - see responses instantly
Free tier - up to 1 GB storage (plenty for exams)
Google-backed - reliable, secure, professional
Easy to scale - can handle thousands of responses
Web console - view/manage data easily
No third-party services - controlled by you
Built-in security - authentication rules available