Font size
WorksheetsFull Stack Developer Internship
Total questions: 64
Worksheet time: 1hrs 4mins
In which file is the application's route file defined in Laravel?
routes/api.php
routes/console.php
routes/web.php
routes/middleware.php
How is web.php file created or generated in Laravel?
Manually by the developer
Automatically by the Laravel framework
Through artisan commands
By configuring the routes.php file
What is the purpose of the web.php file in Laravel?
Defining routes for API endpoints
Defining routes for console commands
Defining routes for web pages and HTTP requests
Defining database for routes
Which of the following is NOT a characteristic of REQUIRED PARAMETERS for web application routing?
Optional to capture
Mandatorily captured
Essential for routing
User identification number
How can developers make parameters optional in the URL?
By using a default value for parameters
By excluding parameters from the URL
By including a "?" after the parameter name
By making parameters mandatory
What is the main advantage of using the blade template engine in Laravel?
Faster database queries
Automatic form validation
Easy creation of master or main templates
Improved routing system
How does Laravel recognize blade templates?
By adding laravel in the name of the file
By using the public folder to save the files
By adding a specific tag to the template
By checking for a .blade.php extension
Where are all the blade templates stored in a Laravel application?
public/views
app/views
resources/templates
resources/views
What is required to extend a master template in a blade file?
@extends directive
@include directive
@extend directive
@master directive
Which syntax is used to display a variable inside a Blade view?
[ $variable ]
{{ $variable }}
{ $variable }
@variable
Where are Controllers typically stored in a Laravel project?
app/Models
app/Http/Routes
app/Views
app/Http/Controllers
Which command is used to create a controller using the Artisan CLI?
php artisan create:controller <controller-name>
php artisan make:controller <controller-name>
php create:controller <controller-name>
php make:controller <controller-name>
what is the correct syntax for using a controller in the routes/web.php file?
Route::get('/', [controller_name::class, 'class_name']);
Route::create('/', [controller_name::class, 'class_name']);
Route::controller('/', [controller_name::class, 'class_name']);
Route::add('/', [controller_name::class, 'class_name']);
Which HTTP method is typically employed when submitting data to a website?
GET
PATCH
POST
OPTIONS
What does the Illuminate\Http\Request instance provide in Laravel?
Access to database connections
Access to file storage
A rich set of methods to get information about the current HTTP request
Access to Laravel configuration files
Which tag is used for php
<?php
?>
<style>
<php ?>
<php
/php>
What are the two types of array in php
Indexed, sequence
Associative, sequence
Indexed, associative
None
$a=array("Timmy","Jimmy");
Is an example of
Indexed array
Associative array
Sequence array
None
$a=array(10=>"Jimmy",20=>"mummy");
Is an example of
Sequence array
Indexed array
Associative array
None
In php the keyword to be used before function name is
Function
Static
function
FUNCTION
function add()
{
$a=10;
echo $a;}
This is an example for
Call by value
Call by reference
None
Both
function add(&a)
{
$a=10;
echo $a;}
$a=33;
This is an example for
Call by value
Call by reference
Both of the above
None
<?php
function add()
{
global $a=10;
echo $a;
}
add();
$a+=10;
?>
Output is
10
15
20
30
$a="deepan";
$b="Deepan";
if(strcmp($a,$b))
{
echo "equal";
}
else{
echo " not equal";}
Output is
Equal
Not equal
Error
None
$a="IT is favorite department";
$b=sub_string($a,"bes",7,14);
echo $b;
Output is
IT is best department
IT is bes department
Error
IT is favorite department
Which file is used to configure Tailwind CSS?
tailwind.config.js
styles.css
index.html
app.js
In Tailwind CSS, what utility class would you use to add padding to all sides of an element?
.p-all
.padding
.p-4
.pad-all
Which directive is used to include Tailwind CSS in a project built with PostCSS?
@tailwind
@import tailwind
@use tailwind
@apply tailwind
What does the @apply directive in Tailwind CSS allow you to do?
Import external stylesheets
Extend existing utility classes
Define custom CSS variables
Apply JavaScript functions
Which class would you use to make text bold in Tailwind CSS?
.font-semibold
.text-bold
.bold
.font-bold
Which of the following is NOT a valid Tailwind CSS utility class for text alignment?
.text-left
.text-center
.align-middle
.text-right
Which utility class would you use to add a 2px border to the top of an element in Tailwind CSS?
.border-top-2
.border-t-2
.border-2-top
.border-top
In Tailwind CSS, how would you change the font size of an element to 24 pixels?
.font-24
.text-24
.text-lg
.font-lg
Which of the following bootstrap style of button indicates a successful or positive action?
.btn
.btn-primary
.btn-success
.btn-info
which class applies the hover color to a particular row or cell of a table?
active
success
warning
danger
The .container-fluid class provides
fixed width container
table format
to create a form
to create a form
medium devices are defined as having a screen width from
992 to 1199 pixels
900 to 1000 pixels
768 to 991 pixels
512 pixels to 2048 pixels
which class makes rounded corner images
img-round-corner
img-circle
img-rounded
img-rnd
The Bootstrap class lg means for
phones
tablets
desktop
larger desktop
which class is used to create a button as link in bootstrap
btn-url
btn-anchor
btn-hyper
btn-link
MongoDB is primarily classified as:
Relational Database
Document-Oriented Database
Graph Database
Columnar Database
The default port for MongoDB is:
1433
1521
27017
3306
In MongoDB, a collection is equivalent to which in relational databases?
Row
Column
Table
Index
Which of the following formats does MongoDB use to store data internally?
JSON
BSON
XML
CSV
The _id field in MongoDB:
Is optional
Must be unique per collection
Can be changed anytime
Is only used in indexes
Which command lists all available databases in MongoDB shell?
show dbs
db.show()
show collections
list databases
Which method inserts multiple documents in MongoDB?
insert()
insertOne()
insertMany()
addDocuments()
The default storage engine in MongoDB 3.2+ is:
InnoDB
WiredTiger
MMAPv1
RocksDB
Which operator is used to match values greater than a specified value?
$lt
$lte
$gt
$eq
Which MongoDB feature allows horizontal scaling by distributing data?
Replication
Indexing
Aggregation
Sharding
Which aggregation stage groups documents by a field?
$sort
$group
$match
$limit
Which index type is used for location-based queries?
Text Index
Hashed Index
2dsphere Index
Compound Index
In replication, which node receives all write operations?
Secondary
Primary
Arbiter
Hidden Node
What is the default database when you start MongoDB shell?
default
main
admin
test
Which command shows all collections in the current database?
show collections
list tables
db.listCollections()
Both A and C
Which method is used to update only specific fields in a document?
replaceOne()
updatePartial()
updateOne() with $set
patch()
In MongoDB, replication primarily provides:
Faster queries
Data redundancy and failover
Encryption
Aggregation support
The find() method in MongoDB shell returns results in:
XML
JSON-like format (internally BSON)
CSV
YAML
Which of the following is NOT a valid MongoDB data type?
Boolean
Double
Date
Table
Which operator in MongoDB is used for pattern matching in strings?
$regex
$like
$pattern
$search
Enter Your Name
Enter Your Enrolment No (USE Capital Alphabets Only)
Enter Your Branch from these(CSE,CSE-AIML,CSE-DS,CSIT,CY,IT)
Enter Your Acropolis ID (For EX xxxxxxxxx@acropolis.in)
