NEW
Font size
WorksheetsWeb Development Pretest for Grade 11
Total questions: 20
Worksheet time: 10mins
What does HTML stand for?
HighText Markup Language
HyperText Multi Language
HyperText Markup Link
HyperText Markup Language
Which language is primarily used for styling web pages?
JavaScript
HTML
CSS
PHP
What is the purpose of a database in web development?
To provide user authentication and authorization.
To enhance the visual design of a website.
The purpose of a database in web development is to store and manage data for dynamic web applications.
To host web servers and applications.
What command is used to initialize a new Git repository?
git create
git init
git start
git new
What is Bootstrap used for in web development?
Bootstrap is a programming language for web development.
Bootstrap is primarily used for database management.
Bootstrap is used for developing responsive and mobile-first web applications.
Bootstrap is used for creating static web pages.
How do you create a new branch in Git?
git new branch
git branch
git create
git switch
What is the main function of Laravel in web development?
To act as a front-end framework for building user interfaces.
The main function of Laravel in web development is to facilitate the creation of web applications by providing a robust framework with built-in features.
To provide a content management system for blogs and articles.
To serve as a database management system for web applications.
What is the purpose of using Tailwind CSS?
To provide a framework for backend development.
To create complex animations easily.
To enforce strict design patterns in CSS.
The purpose of using Tailwind CSS is to facilitate rapid UI development with utility-first styling.
How do you connect to a PostgreSQL database in Laravel?
Use the command php artisan db:connect to establish a connection.
Edit the config/database.php file directly without using the .env file.
Set DB_CONNECTION=pgsql in .env and configure DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD.
Set DB_CONNECTION=mysql in .env and configure DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD.
What is a responsive web design?
A method for creating static web pages.
A design approach that makes web pages render well on various devices and screen sizes.
A technique for improving website loading speed.
A design that only works on desktop computers.
What command is used to commit changes in Git?
git merge
git add
git push
git commit
What is the difference between SQL and NoSQL databases?
SQL databases are non-relational and handle structured data; NoSQL databases are relational and can only manage structured data.
SQL databases require complex queries; NoSQL databases use only simple key-value pairs.
SQL databases are relational and structured; NoSQL databases are non-relational and can handle unstructured data.
SQL databases are designed for unstructured data; NoSQL databases are only for structured data.
How can you make a website mobile-friendly using Bootstrap?
Avoid using any CSS frameworks for responsiveness.
Use Bootstrap's grid system, responsive utility classes, and ensure media elements are responsive.
Use only fixed-width layouts for all devices.
Make all images a fixed size regardless of screen size.
What is the command to push changes to a remote repository in Git?
git clone repository-url
git push origin main
git commit -m 'update'
git fetch origin
What is the role of migrations in Laravel?
Migrations are used to create user authentication in Laravel.
Migrations help in managing application routes in Laravel.
Migrations are responsible for handling file uploads in Laravel.
Migrations in Laravel facilitate version control for database schema changes.
How do you apply utility classes in Tailwind CSS?
Create a separate CSS file for utility classes.
Apply styles using inline CSS only.
Add utility class names directly to HTML elements to apply styles.
Use JavaScript to apply styles dynamically.
What is the purpose of the .env file in a Laravel project?
The .env file stores environment variables for configuring a Laravel application.
The .env file is for managing database migrations.
The .env file contains the application's source code.
The .env file is used for storing user data.
What is the significance of the 'public' directory in a Laravel application?
The 'public' directory is where the application logic is implemented.
The 'public' directory is the web server's document root and contains the entry point for requests and public assets.
The 'public' directory contains configuration files for the application.
The 'public' directory is used for storing database migrations.
How do you retrieve data from a PostgreSQL database using Laravel?
Retrieve data using PHP's built-in functions
Use Eloquent or Query Builder to retrieve data, e.g., Model::all() or DB::table('table_name')->get().
Use raw SQL queries only
Access data directly from the file system
What is the use of the 'composer.json' file in a Laravel project?
To define routes for the application
To manage database migrations
The 'composer.json' file is used to manage dependencies and configurations for a Laravel project.
To store user authentication data
