wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Full Stack Developer Internship

Total questions: 64

Worksheet time: 1hrs 4mins

Name
Class
Date
1.

In which file is the application's route file defined in Laravel?

a)

routes/api.php

b)

routes/console.php

c)

routes/web.php

d)

routes/middleware.php

2.

How is web.php file created or generated in Laravel?

a)

Manually by the developer

b)

Automatically by the Laravel framework

c)

Through artisan commands

d)

By configuring the routes.php file

3.

What is the purpose of the web.php file in Laravel?

a)

Defining routes for API endpoints

b)

Defining routes for console commands

c)

Defining routes for web pages and HTTP requests

d)

Defining database for routes

4.

Which of the following is NOT a characteristic of REQUIRED PARAMETERS for web application routing?

a)

Optional to capture

b)

Mandatorily captured

c)

Essential for routing

d)

User identification number

5.

How can developers make parameters optional in the URL?

a)

By using a default value for parameters

b)

By excluding parameters from the URL

c)

By including a "?" after the parameter name

d)

By making parameters mandatory

6.

What is the main advantage of using the blade template engine in Laravel?

a)

Faster database queries

b)

Automatic form validation

c)

Easy creation of master or main templates

d)

Improved routing system

7.

How does Laravel recognize blade templates?

a)

By adding laravel in the name of the file

b)

By using the public folder to save the files

c)

By adding a specific tag to the template

d)

By checking for a .blade.php extension

8.

Where are all the blade templates stored in a Laravel application?

a)

public/views

b)

app/views

c)

resources/templates

d)

resources/views

9.

What is required to extend a master template in a blade file?

a)

@extends directive

b)

@include directive

c)

@extend directive

d)

@master directive

10.

Which syntax is used to display a variable inside a Blade view?

a)

[ $variable ]

b)

{{ $variable }}

c)

{ $variable }

d)

@variable

11.

Where are Controllers typically stored in a Laravel project?

a)

app/Models

b)

app/Http/Routes

c)

app/Views

d)

app/Http/Controllers

12.

Which command is used to create a controller using the Artisan CLI?

a)

php artisan create:controller <controller-name>

b)

php artisan make:controller <controller-name>

c)

php create:controller <controller-name>

d)

php make:controller <controller-name>

13.

what is the correct syntax for using a controller in the routes/web.php file?

a)

Route::get('/', [controller_name::class, 'class_name']);

b)

Route::create('/', [controller_name::class, 'class_name']);

c)

Route::controller('/', [controller_name::class, 'class_name']);

d)

Route::add('/', [controller_name::class, 'class_name']);

14.

Which HTTP method is typically employed when submitting data to a website?

a)

GET

b)

PATCH

c)

POST

d)

OPTIONS

15.

What does the Illuminate\Http\Request instance provide in Laravel?

a)

Access to database connections

b)

Access to file storage

c)

A rich set of methods to get information about the current HTTP request

d)

Access to Laravel configuration files

16.

Which tag is used for php

a)

<?php

?>

b)

<style>

c)

<php ?>

d)

<php

/php>

17.

What are the two types of array in php

a)

Indexed, sequence

b)

Associative, sequence

c)

Indexed, associative

d)

None

18.

$a=array("Timmy","Jimmy");

Is an example of

a)

Indexed array

b)

Associative array

c)

Sequence array

d)

None

19.

$a=array(10=>"Jimmy",20=>"mummy");

Is an example of

a)

Sequence array

b)

Indexed array

c)

Associative array

d)

None

20.

In php the keyword to be used before function name is

a)

Function

b)

Static

c)

function

d)

FUNCTION

21.

function add()

{

$a=10;

echo $a;}

This is an example for

a)

Call by value

b)

Call by reference

c)

None

d)

Both

22.

function add(&a)

{

$a=10;

echo $a;}

$a=33;

This is an example for

a)

Call by value

b)

Call by reference

c)

Both of the above

d)

None

23.

<?php

function add()

{

global $a=10;

echo $a;

}

add();

$a+=10;

?>

Output is

a)

10

b)

15

c)

20

d)

30

24.

$a="deepan";

$b="Deepan";

if(strcmp($a,$b))

{

echo "equal";

}

else{

echo " not equal";}

Output is

a)

Equal

b)

Not equal

c)

Error

d)

None

25.

$a="IT is favorite department";

$b=sub_string($a,"bes",7,14);

echo $b;

Output is

a)

IT is best department

b)

IT is bes department

c)

Error

d)

IT is favorite department

26.

Which file is used to configure Tailwind CSS?

a)

tailwind.config.js

b)

styles.css

c)

index.html

d)

app.js

27.

In Tailwind CSS, what utility class would you use to add padding to all sides of an element?

a)

.p-all

b)

.padding

c)

.p-4

d)

.pad-all

28.

Which directive is used to include Tailwind CSS in a project built with PostCSS?

a)

@tailwind

b)
  • @import tailwind

c)

@use tailwind

d)

@apply tailwind

29.

What does the @apply directive in Tailwind CSS allow you to do?

a)

Import external stylesheets

b)

Extend existing utility classes

c)

Define custom CSS variables

d)

Apply JavaScript functions

30.

Which class would you use to make text bold in Tailwind CSS?

a)

.font-semibold

b)

.text-bold

c)

.bold

d)

.font-bold

31.

Which of the following is NOT a valid Tailwind CSS utility class for text alignment?

a)

.text-left

b)

.text-center

c)

.align-middle

d)

.text-right

32.

Which utility class would you use to add a 2px border to the top of an element in Tailwind CSS?

a)

.border-top-2

b)

.border-t-2

c)

.border-2-top

d)

.border-top

33.

In Tailwind CSS, how would you change the font size of an element to 24 pixels?

a)

.font-24

b)

.text-24

c)

.text-lg

d)

.font-lg

34.

Which of the following bootstrap style of button indicates a successful or positive action?

a)

.btn

b)

.btn-primary

c)

.btn-success

d)

.btn-info

35.

which class applies the hover color to a particular row or cell of a table?

a)

active

b)

success

c)

warning

d)

danger

36.

The .container-fluid class provides

a)

fixed width container

b)

table format

c)

to create a form

d)

to create a form

37.

medium devices are defined as having a screen width from

a)

992 to 1199 pixels

b)

900 to 1000 pixels

c)

768 to 991 pixels

d)

512 pixels to 2048 pixels

38.

which class makes rounded corner images

a)

img-round-corner

b)

img-circle

c)

img-rounded

d)

img-rnd

39.

The Bootstrap class lg means for

a)

phones

b)

tablets

c)

desktop

d)

larger desktop

40.

which class is used to create a button as link in bootstrap

a)

btn-url

b)

btn-anchor

c)

btn-hyper

d)

btn-link

41.

MongoDB is primarily classified as:

a)

Relational Database

b)

Document-Oriented Database

c)

Graph Database

d)

Columnar Database

42.

The default port for MongoDB is:

a)

1433

b)

1521

c)

27017

d)

3306

43.

In MongoDB, a collection is equivalent to which in relational databases?

a)

Row

b)

Column

c)

Table

d)

Index

44.

Which of the following formats does MongoDB use to store data internally?

a)

JSON

b)

BSON

c)

XML

d)

CSV

45.

The _id field in MongoDB:

a)

Is optional

b)

Must be unique per collection

c)

Can be changed anytime

d)

Is only used in indexes

46.

Which command lists all available databases in MongoDB shell?

a)

show dbs

b)

db.show()

c)

show collections

d)

list databases

47.

Which method inserts multiple documents in MongoDB?

a)

insert()

b)

insertOne()

c)

insertMany()

d)

addDocuments()

48.

The default storage engine in MongoDB 3.2+ is:

a)

InnoDB

b)

WiredTiger

c)

MMAPv1

d)

RocksDB

49.

Which operator is used to match values greater than a specified value?

a)

$lt

b)

$lte

c)

$gt

d)

$eq

50.

Which MongoDB feature allows horizontal scaling by distributing data?

a)

Replication

b)

Indexing

c)

Aggregation

d)

Sharding

51.

Which aggregation stage groups documents by a field?

a)

$sort

b)

$group

c)

$match

d)

$limit

52.

Which index type is used for location-based queries?

a)

Text Index

b)

Hashed Index

c)

2dsphere Index

d)

Compound Index

53.

In replication, which node receives all write operations?

a)

Secondary

b)

Primary

c)

Arbiter

d)

Hidden Node

54.

What is the default database when you start MongoDB shell?

a)

default

b)

main

c)

admin

d)

test

55.

Which command shows all collections in the current database?

a)

show collections

b)

list tables

c)

db.listCollections()

d)

Both A and C

56.

Which method is used to update only specific fields in a document?

a)

replaceOne()

b)

updatePartial()

c)

updateOne() with $set

d)

patch()

57.

In MongoDB, replication primarily provides:

a)

Faster queries

b)

Data redundancy and failover

c)

Encryption

d)

Aggregation support

58.

The find() method in MongoDB shell returns results in:

a)

XML

b)

JSON-like format (internally BSON)

c)

CSV

d)

YAML

59.

Which of the following is NOT a valid MongoDB data type?

a)

Boolean

b)

Double

c)

Date

d)

Table

60.

Which operator in MongoDB is used for pattern matching in strings?

a)

$regex

b)

$like

c)

$pattern

d)

$search

61.

Enter Your Name

4 lines
62.

Enter Your Enrolment No (USE Capital Alphabets Only)

4 lines
63.

Enter Your Branch from these(CSE,CSE-AIML,CSE-DS,CSIT,CY,IT)

4 lines
64.

Enter Your Acropolis ID (For EX xxxxxxxxx@acropolis.in)

4 lines