NEW
Font size
S
M
L
XL
Worksheetsname5
Total questions: 47
Worksheet time: 16mins
Name
Class
Date
1.
What is a class in CSS?
a)
A way to apply styles to multiple elements by using a shared selector.
b)
A JavaScript function that modifies CSS properties.
c)
A function that creates animations.
d)
A function that creates HTML elements.
2.
What tag is used to create hyperlinks?
a)
<link></link>
b)
<href></href>
c)
<a></a>
d)
<b></b>
3.
What is an ID in HTML and CSS?
a)
A unique identifier used to style a single element in CSS
b)
A tag that creates a hyperlink in HTML
c)
A way to apply styles to multiple elements at once
d)
A property used to change text color in CSS
4.
What keyword is used to declare a variable in JavaScript?
a)
const
b)
let
c)
var
d)
All of the above
5.
Which symbol is used for strict equality comparison in JavaScript?
a)
"="
b)
"=="
c)
"==="
d)
"!="
6.
What is a correct way of creating a function in JavaScript?
a)
function myFunction() { }
b)
def myFunction() { }
c)
func myFunction() { }
d)
create function myFunction() { }
7.
What does the GET method do in an HTTP request?
a)
Sends data to the server
b)
Retrieves data from the server
c)
Updates data on the server
d)
Deletes data on the server
8.
How to add a new element in an array ?
a)
add()
b)
introduce()
c)
push()
d)
pop()
9.
Which HTTP status code indicates a successful request?
a)
400
b)
500
c)
200
d)
404
10.
Which HTTP status code indicates that the requested resource was not found?
a)
400
b)
500
c)
200
d)
404
11.
Which HTTP status code indicates a server error?
a)
500
b)
400
c)
404
d)
200
12.
Which JavaScript method is used to find the length of an array?
a)
length()
b)
size()
c)
getLength()
d)
length
13.
What are the common HTTP request methods?
a)
SEND, RECEIVE, UPDATE, REMOVE
b)
FETCH, PUT, DELETE, SEND
c)
GET, POST, PUT, DELETE
d)
QUERY, INSERT, UPDATE, DROP
14.
What is the result of the following code: console.log(2 + '2')?
a)
22
b)
4
c)
NaN
d)
Error
15.
What does the <a> tag in HTML define?
a)
A hyperlink
b)
A paragraph of text
c)
An image
d)
A section of a webpage
16.
What linux command is used to find a specific word inside a file?
a)
find "word" filename
b)
search "word" filename
c)
grep "word" filename
d)
scan "word" filename
17.
Which HTML element is used to create an unordered list?
a)
<ol>
b)
<ul>
c)
<li>
d)
<list>
18.
What does the 'cd' command in Linux do?
a)
Change directory
b)
Modifies a file
c)
Creates a file
d)
Search in a file
19.
How do you check the current working directory in Linux?
a)
ls
b)
pwd
c)
dir
d)
whoami
20.
The pop() method removes the last element from an array in JavaScript.
a)
True
b)
False
21.
What does the alert() function do in JavaScript?
a)
Logs a message to the console
b)
Shows a popup with a message
c)
Changes the background color of the page
d)
Prints a message to the document
22.
What's the meaning of null in JavaScript?
a)
null is unassigned
b)
null is automatically set
c)
null means no value, set by the developer
d)
null is a special object value
23.
What is the purpose of JSON.stringify()?
a)
Converts a JavaScript object to a JSON string.
b)
Converts a JSON string to a JavaScript object.
c)
Encrypts JavaScript data for security.
d)
Converts numbers into a string format.
24.
Which of the following is NOT a valid JavaScript data type?
a)
Boolean
b)
String
c)
Character
d)
Object
25.
How do you declare an arrow function in JavaScript?
a)
function => myFunc() { return 10; }
b)
const myFunc = => { return 10; }
c)
const myFunc = () => { return 10; };
d)
myFunc: () => return 10;
26.
How can you check if a variable is null in JavaScript?
a)
if (x = null)
b)
if (x == null)
c)
if (x is null)
d)
if (x.equals(null))
27.
How do you create a new directory in Linux?
a)
mkdir new_directory
b)
create new_directory
c)
touch new_directory
d)
dir new_directory
28.
What is a branch in Git?
a)
A separate line of development
b)
A tree component
c)
A command to delete files
d)
A feature that merges conflicts
29.
What command lists all currently running processes?
a)
ps aux
b)
ls processes
c)
find processes
d)
proc list
30.
What is an HTTP status code 403?
a)
OK
b)
Not Found
c)
Forbidden
d)
Internal Server Error
31.
What is the difference between PUT and PATCH?
a)
PUT updates the whole resource, PATCH updates part of it.
b)
PUT is only for creating resources, PATCH is only for deleting.
c)
PUT is more secure than PATCH.
d)
PATCH always results in a 500 error.
32.
How do you add a new property age with a value of 25 to an existing JavaScript object person?
a)
person.addProperty("age", 25);
b)
person["age"] = 25;
c)
person.add("age", 25);
d)
person.set("age", 25);
33.
What does Object.keys(obj) return?
a)
An array of values of the object.
b)
An array of keys of the object.
c)
An array of key-value pairs.
d)
A new object with the same keys.
34.
What does Object.values(obj) return?
a)
An array of values of the object.
b)
An array of keys of the object.
c)
An array of key-value pairs.
d)
A new object with the same keys.
35.
What does the flag '-m' in 'git commit' command
a)
Saves changes with a message
b)
Reverse the commit
c)
Solves conflicts
d)
Cache the commit
36.
Which type of database uses tables to store data?
a)
Relational Database
b)
Non-relational Database
c)
Both
d)
Neither
37.
What will be the output of console.log(0 == false);?
a)
True
b)
False
c)
undefined
d)
TypeError
38.
How do you remove the last element from an array in JavaScript?
a)
arr.deleteLast();
b)
arr.remove(-1);
c)
arr.pop();
d)
arr.splice(-1, 0);
39.
What is a primary feature of non-relational databases?
a)
They support SQL queries.
b)
They are designed to store structured data only.
c)
They store data without predefined schemas.
d)
They use foreign keys for relationships.
40.
What command is used to delete a file in Linux?
a)
delete file.txt
b)
erase file.txt
c)
rm file.txt
d)
destroy file.txt
41.
What does the cd .. command do?
a)
Changes to the root directory.
b)
Moves to the parent directory.
c)
Moves to the home directory.
d)
Opens a new terminal window.
42.
How do you list all files in a directory?
a)
ls
b)
pwd
c)
touch
d)
rm
43.
Which of the following is a non-relational database?
a)
MySQL
b)
Oracle Database
c)
MongoDB
d)
SQLite
44.
What command is used to create a new file in Linux?
a)
pwd
b)
mkdir
c)
touch
d)
create
45.
Which protocol is commonly used for secure communication between a client and server?
a)
FTP
b)
HTTP
c)
HTTPS
d)
SMTP
46.
What does CRUD stand for in web development?
a)
Create, Read, Update, Delete
b)
Connect, Render, Upload, Deploy
c)
Copy, Remove, Undo, Download
d)
Cache, Retrieve, Update, Drop
47.
What is an API?
a)
A front-end library for designing UI.
b)
A set of rules for communication between software applications.
c)
A security feature to protect databases.
d)
A caching mechanism.
Reset
