stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
JAVASCRIPT,HTML,CSS,ENGLISH Flashcards | StudBud
Explore
/
JAVASCRIPT,HTML,CSS,ENGLISH
JAVASCRIPT,HTML,CSS,ENGLISH
50 terms
·
StudBud Administration
·
24 plays
a quize about to basics of web development and english
Flashcards
50 cards
F
Practice quiz
P
Host live
L
Questions
50
Answers
1
What will this print?
B) [] (empty array)
C) undefined
D) 0
A) "" (empty string)
2
How do you write a comment in CSS?
# comment
// comment
<!-- comment -->
/* comment */
3
She sings better than ___do.
(D) mine
(C) myself
(A) me
(B) i
4
What will the following code output and why?
B) "NaN"
A) "number"
C) "undefined"
D) "object"
5
What is the output?
(D) 0
(C) undefined
(A) 6
(B) 123
6
If I ___ known, I would have helped you.
(D) did
(B) have
(A) had
(C) would have
7
“I’m good in English.”
A) Correct
B) Incorrect
8
The manager, along with the employees, ___ attending the meeting.
(C) is
(D) have been
(B) were
(A) are
9
What is the local scope in JavaScript?
(C) In the HTML file
(A) Outside a function
(B) Inside a function or block
(D) In CSS
10
What will be the output of the following code?
(A) [1, 2, 5, 9]
(C) [5, 1, 9, 2]
( B) [1, 2, 9, 5]
(D) [2, 5, 1, 9]
11
How do you select an element with id="main"?
main
*main
.main
#main
12
What happens when you try to add a banana to the number 42 in JavaScript?
A) You get a delicious fruit smoothie
B) JavaScript throws a fruit-related error
D) Your code magically becomes a tropical vacation
C) The number turns into a string and concatenates with "banana"
13
Which of the following best describes how
Bubble Sort
works
(B) Compares all elements to the pivot
(D) Uses a binary tree for sorting
( A) Splits the array and merges sorted halves
(C) Repeatedly swaps adjacent elements if they are in the wrong order
14
The word
"data"
is always singular in English
False
True
15
What is the global scope in JavaScript?
(C) Outside all functions
(D) Inside an object
(A) Inside a function
( B) Inside a loop
16
What will be logged?
(B) [1, 2, 3, undefined, undefined]
(D) [1, 2, 3, null, null]
(A) [1, 2, 3]
(C) [ 1, 2, 3, <2 empty items>]
17
Function declarations can be called before they are defined.
True
False
18
Neither of the answers are correct
B) Incorrect
A) Correct
19
Whose” can only be used for people, not for things
A) True
B) False
20
Which method is used to filter elements in an array based on a condition?
A) map()
D) forEach()
B) filter()
C) reduce()
21
Each of the students have completed their work
(A) correct
(B) Incorrect
22
The <meta charset="UTF-8"> tag should be placed inside the <head> element of an HTML document.
False
True
23
Let’s eat grandma!”
A) Correct
B) Incorrect
24
What does the * selector do in CSS?
(D) Selects IDs only
(B) Selects elements with a class
(C) Selects all elements
(A) Selects headings only
25
How do you store a string value with the key 'username' in localStorage?
B) localStorage.store('username', 'John');
C) localStorage.save('username', 'John');
D) localStorage.put('username', 'John');
A) localStorage.setItem('username', 'John');
26
What will be the result of this code snippet?
A) [1, 2, 3]
B) [1, 2, 3, 4]
C) [4, 1, 2, 3]
D) Error
27
Every function must have a name
False
True
28
What does this return?
A) true
B) false
29
None of the students were late
False
True
30
who are you ?
(C) lion
(D) Player
A) . student
(B). pari
31
How many consonants are there in the English alphabet?
D) 22
A) 21
C) 19
B) 20
32
What will this output?
B) false
A) true
33
In JavaScript, can an object property hold an array as its value?
A) Yes, arrays are type of object and can be assigned as property values.
D) No, arrays and objects are completely separate and cannot be mixed.
B) No, object properties can only hold primitive values like strings .
C) Yes, but only if the array has fewer than 3 elements.
34
The committee have decided to postpone the meeting.
False
True
35
Which input type allows users to select a file?
checkbox
submit
file
text
36
What is a variable in JavaScript?
( D) An object method
(B) A place to store data
(C) A built-in method
(A) .A function that runs automatically
37
He did not knew the answer."
is correct English.
False
True
38
How do you access the value of the property name from the object person?
B) person["name"]
C) Both A and B
A) person.name
D) person->name
39
A function can access variables defined outside of its scope.
False
True
40
What is the output of the following code?
(C) 6
(B) [2, 4, 6]
(D) [undefined, undefined, undefined]
(A) [1, 2, 3]
41
What does the <label> element do in HTML?
C) Adds a comment in the HTML code
D) Creates a link
A) Defines a header for a section
B) Defines a clickable label for a form input
42
Which symbol is used to separate JavaScript statements?
Hyphen (-)
Comma (,)
Semicolon (;)
Colon (:)
43
Which JavaScript object is used to work with dates and times?
(D) datetime
(C) dateTime
( A)DATE
(B) Date time
44
What will be the output of the following code?
D) []
A) [1, 3]
C) [1, 2, 3, 4]
B) [2, 4]
45
Which statement is true about the map() method?
It sorts the array in place
It mutates the original array
It returns a new array with transformed values
It returns a new array with filtered values
46
Ten million dollers ___ a high price to pay.
(A) are
(D) were
(C) have
(B) is
47
She insisted that he ___ the meeting on time.
(A) attends
(B) attended
(C) attend
(D) will attend
48
If I ___ more time, I would finish the project.
D) will have
A) have
C) has
B) had
49
Each of the students ___ responsible for their own work.
B) is
C) were
D) have been
A) are
50
Which of the following best describes how
Insertion Sort
works?
(A) Repeatedly swaps adjacent elements if they are in the wrong order
(D) Splits the array into two and merges them in sorted order
(C) Builds final sorted array one item inserting into correct position.
(B) Selects the smallest element and places it at the beginning