stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
SITE Course Hero Trivia Flashcards | StudBud
Explore
/
SITE Course Hero Trivia
SITE Course Hero Trivia
20 terms
·
StudBud Administration
·
11 plays
Imported from external platform
Flashcards
20 cards
F
Practice quiz
P
Host live
L
Questions
20
Answers
1
Which CSS property is used to change the font of an element?
font-type
text-style
font-family
font-source
2
What is the purpose of the "useState" hook in React?
To create custom hooks
To handle component lifecycle
To manage side effects
To manage state in functional components
3
In JavaScript, which function is used to convert a string to an integer?
parseInt()
stringToNumber()
convertToInt()
toInteger()
4
Which SQL command is used to retrieve data from a PostgreSQL database?
GET
FETCH
SEARCH
SELECT
5
In Express.js, how do you handle middleware that should run for all routes?
app.middleware()
app.useGlobal()
app.all()
app.useAll()
6
Which language is used for defining the structure and content of a web page?
CSS
HTML
React
JavaScript
7
Which HTML tag is used to create a hyperlink?
<a>
<hyperlink>
<link>
<url>
8
What is JSX in React?
A type of CSS preprocessor
A built-in state management library
A JavaScript extension for writing XML-like code
A package manager for React applications
9
How can you update the state of a component in React?
By using the updateState() function
By using the setState() method
By directly modifying the state object
By assigning a new value to the state variable
10
What does the PERN stack consist of?
Python, Ember.js, React, Node.js
PostgreSQL, Express, React, Node.js
PHP, Express, React, Node.js
MySQL, Express, Redux, Node.js
11
In React, which function is used to render a component?
create()
createComponent()
render()
renderComponent()
12
Which HTML tag is used to include external JavaScript files?
<javascript>
Network communication
<js>
<script>
13
Which layer of the PERN stack is responsible for creating RESTful APIs?
React
PostgreSQL
Express.js
Node.js
14
What does DOM stand for in the context of web development?
Data Orientation Model
Document Object Model
Design Object Mechanism
Dynamic Order Module
15
Express.js is a framework for building:
Database schemas
Web servers
Mobile apps
Desktop applications
16
What does CSS stand for?
Cascading Style Sheets
Centralized Style Sheets
Computer Style Sheets
Creative Style Sheets
17
How do you import an external JavaScript file in an HTML document?
<include src="script.js">
<js src="script.js">
<import src="script.js">
<script src="script.js">
18
Which HTTP method is used for updating data on the server?
PATCH
GET
PUT
POST
19
Which of the following is NOT a primitive data type in JavaScript?
Boolean
String
Array
Number
20
Which of the following is a valid way to define a function in JavaScript?
function = myFunction() {}
def myFunction() {}
let myFunction = () => {}
const myFunction = function() {}