Tech Quiz
Quiz
•
Education
•
1st - 5th Grade
•
Hard

Severus Snape
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Why is it a good idea to pass a function to setState instead of an object?
It provides better encapsulation
It makes sure the object is not mutated
It is asynchronous and might result in out of sync values
It automatically updates a component
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these terms commonly describes reactjs applications?
Integrated
Declarative
Imperative
Closed
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Currently, handle click is being called instead of passed as a reference. How do you fix this?
<button onClick={this.handleClick()}>Click this </button>
<button onClick={this.handleClick.bind(handleClick)}>Click this </button>
<button onClick={handleClick()}>Click this</button>
<button onclick={this.handleClick}>Click this</button>
<button onClick={this.handleClick}>Click this </button>
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Fix the Syntax error that results from running this code?
const person = (firstName, lastName) =>
{
first: firstName,
last: lastName
}
console.log(person(“Jill”, “Wilson”));
Call the function from another file.
Add a return statement before the first curly brace.
Replace the object with an array.
Wrap the object in parentheses.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you invoke setDone only when component mounts, using hooks?
Function MyComponent(props) {
const [done, setDone] = useState(false);
Return <he>Done: {done}</h>;
}
useEffect(() => { setDone(true); }, []);
useEffect(() => { setDone(true); });
useEffect(() => {setDone(true); }, [setDone]);
useEffect(() => {setDone(true); }, [done, setDone]);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following syntax is correct for applying multiple filters in AngularJS?
{{ expression | {filter1} | {filter2} | … }}
{{ expression – {filter1} – {filter2} – … }}
{{ {filter1} | {filter2} | …-expression}}
{{ expression | filter1 | filter2 | … }}
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Predict the output of the following code snippet
function foo(input: boolean) {
let one = 1200;
if (input) {
let ans = one + 1;
}
return ans;
}
Runtime error
Compilation Error
Undefined
1201
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
30 questions
MTB 3rd Quarter Pre-Test
Quiz
•
2nd Grade
33 questions
ÔN TẬP HKII
Quiz
•
1st - 5th Grade
25 questions
PTS Bahasa Indonesia
Quiz
•
5th Grade
25 questions
Ôn Tập Pascal ĐB HKII
Quiz
•
1st Grade
25 questions
Pang-ugnay at Mga Uri nito (6)
Quiz
•
2nd - 6th Grade
25 questions
Pengukuhan Jawi D2, Sambung Huruf - JAIS
Quiz
•
1st - 3rd Grade
25 questions
PJK TING 4 - PEMAKANAN
Quiz
•
1st - 5th Grade
34 questions
Python Seviye 1
Quiz
•
5th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Education
24 questions
CKLA Unit 2 Test
Quiz
•
5th Grade
5 questions
Theme Practice
Lesson
•
3rd Grade
11 questions
Practice Mini-Test – Unit 2: Place Value & Measurement
Quiz
•
5th Grade
7 questions
Combining Sentences and Sentence Structure
Quiz
•
4th Grade
11 questions
Wonder Chapters 1-12
Quiz
•
5th Grade
24 questions
Sadlier Unit 4 Vocabulary Orange
Quiz
•
4th Grade
24 questions
Sadlier Unit 3 Vocabulary Orange
Quiz
•
4th Grade