Which of the following is incorrect branch naming.
Coding convention

Quiz
•
Professional Development
•
KG - 3rd Grade
•
Medium
Phuong Q
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bugfix: bugfix/*
Feature: feature/*
Hotfix: hotfix/*
Release: master/*
Answer explanation
Release: release/*
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is prefered function declaration?
function test() {}
const test = () => {}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
import * as React from 'react'
YES
NO
Answer explanation
- This is the new convention for importing React: Introducing the New JSX Transform – React Blog
- Easier to upgrade and supports tree-shaking.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is Function Declaration
function Button(): React.ReactElement {/* */}
const Button: React.FC = () => {/* */}
Answer explanation
- Globals are bad
- Explicit types over generalized ones
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Always use React Fragment to render multiple React components over array and wrapper div:
1function ComponentA() {
return <>
<ComponentB />
<ComponentC />
</>
}
YES
NO
Answer explanation
- A React Fragment doesn’t create a HTML tag, it helps improve performance, and prevent bugs.
- Unlike array, a React Fragment doesn’t need to specify key prop to its children.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
[Iterating objects] Which of the following statements are preferred?
for (const x in someObj) { if (!someObj.hasOwnProperty(x)) continue;}
for (const x in someObj) { }
for (const x of Object.keys(someObj)) { }
for (const [key, value] of Object.entries(someObj)) { }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
someArr.forEach((item, index) => {
someFn(item, index);
});
SHOULD
SHOULD NOT
Answer explanation
Do not use Array.prototype.forEach, Set.prototype.forEach, and Map.prototype.forEach. They make code harder to debug and defeat some useful compiler checks (e.g. reachability).
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Reaction group 2

Quiz
•
University
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
10 questions
Diseño de Recursos Educativos

Quiz
•
1st - 5th Grade
10 questions
Browsing

Quiz
•
1st Grade
10 questions
PHP BASIC

Quiz
•
University
9 questions
Object & Array in Javascript

Quiz
•
Professional Development
10 questions
Generalidades Fotogrametría

Quiz
•
Professional Development
7 questions
ASRD Autism Awareness Quizz

Quiz
•
6th - 8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade