wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

React and NodeJS with Docker

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

DOM (Document Object Model) มีการเก็บข้อมูลในรูปแบบไหน ?

a)

Stack

b)

Tree

c)

File

d)

Array

2.

Components คืออะไร

a)

องค์ประกอบของหน้าเว็บไซต์ โดยแบ่งให้เป็นส่วนย่อยต่าง ๆ เพื่อนำกลับมาใช้ใหม่

b)


ตัวแทนของการทำงานหน้าเว็บไซต์

c)

Folder ของโปรเจค

d)

ส่วนประกอบของการรันโปรเจค ที่ทำให้โปรเจครันได้ง่ายมากขึ้น

3.

ReactJS คืออะไร

a)

Server side Framework

b)

User-interface framework

c)

Library for building interaction interfaces

d)

Meta Framework

4.

เป้าหมายของ React ไว้สำหรับสร้างอะไร ?

a)

Database

b)

Connectivity

c)

User interface

d)

Design Platform

5.

ข้อใดเรียกฟังก์ชัน fetch() ในแท็ก h1 ของ JSX ได้ถูกต้อง

a)

<h1>{fetch()}</h1>

b)

<h1>${fetch()}</h1>

c)

<h1>{fetch}</h1>

d)

<h1>${fetch}</h1>

6.

ฟังก์ชันใดใน React Component จะทำการ overrid เพื่อหยุดการทำงานขณะกำลัง update component

a)

willComponentUpdate

b)

shouldComponentUpdate

c)

componentDidUpdate

d)

componentDidMount

7.

สิ่งใดใช้ส่งข้อมูลใน component จากภายนอก

a)

setState

b)

render with arguments

c)

PropTypes

d)

props

8.

ฟังก์ชันใดใน React Component จะเรียกหลังจากมีการ Render เสร็จแล้ว

a)

componentDidUpdate

b)

componentDidMount

c)

componentMounted

d)

componentUpdated

9.

ข้อใดเขียนคำสั่งการ handle click ปุ่มได้ถูกต้อง


a)

<button onclick={this.foo()}>

b)

<button onclick={this.foo}>

c)

<button onClick={this.foo()}>

d)

<button onClick={this.foo}>

10.

จะเกิดอะไรขึ้นหากเราทำการเรียก setState() ภายใน render() method

a)

Repetitive output appears on the screen

b)

Duplicate key error

c)

Stack overflow error

d)

Nothing happens

11.

จะกำหนด css แบบ inline เพื่อกำหนด font ขนาด 12px และสี red ใน jsx อย่างไร

a)

style={{font-size:12,color:'red'}}

b)


style={fontSize:'12px',color:'red'}

c)


style={{font-size:12px,color:'red'}}

d)

style={{fontSize:'12px',color:'red'}}

12.

Ref ใช้สำหรับอ้างอิง element หรือ componenent ที่ return โดยอะไร

a)

react()

b)

render()

c)

reduce()

d)

refer()

13.

Babel เป็น JavaScript Transpiler แบบหนึ่ง มีหน้าที่ทำอะไร?

a)


แปลงภาษา CSS ให้อยู่ในรูปแบบ JavaScript ES5 ที่เว็บเบราเซอร์ส่วนใหญ่ทำงานด้วยได้

b)

แปลงภาษา HTML5 ให้อยู่ในรูปแบบ JavaScript ES5 ที่เว็บเบราเซอร์ส่วนใหญ่ทำงานด้วยได้

c)

แปลงภาษา JavaScript รุ่นใหม่ๆ ให้อยู่ในรูปแบบ JavaScript ES5 ที่เว็บเบราเซอร์ส่วนใหญ่ทำงานด้วยได้

d)

ถูกทุกข้อ

14.

ภาษาใด ไม่ได้ ทำงานฝั่ง Frontend

a)

CSS

b)

HTML

c)

.NET

d)

JavaScript

15.

JavaScript ที่ทำงานภายนอก Browser คือ ?

a)

Angular

b)

Vue

c)

Node.JS

d)

React.JS

16.

ECMAScript คืออะไร

a)

ภาษาโปรแกรมมิ่ง

b)

ตัวกำหนดมาตรฐาน

c)

ตัวภาษาที่ทำตามมาตรฐาน

d)

ถูกทุกข้อ

17.

ES6 ถูกปรับปรุงขึ้นครั้งแรกในปีใด

a)

2014

b)

2015

c)

2016

d)

2020

18.

JavaScript เป็นภาษาแบบใด

a)

Compiler

b)

Interpreter

c)

Binary

d)

Machine code

19.

ไฟล์สกุลของภาษา JavaScript แบบมาตรฐานคือ ?

a)

.ts

b)

.js

c)

.jsx

d)

.java

20.

ข้อใดเขียนคำสั่งแสดงผลบนหน้าจอได้ถูกต้อง

a)

document.writeln("Hello World");

b)

document.print("Hello World");

c)

document.write("Hello World");

d)


document.show("Hello World");

21.

ข้อใดสร้างตัวแปรใน javascript ได้ถูกต้อง

a)

var 2b = 300;

b)

var double = 1000;

c)

var age = "John";

d)

var total Price = 1299;

22.

console.warn("Hello");

คำสั่งดังกล่าวคืออะไร

a)


แสดงผล log ออกทาง console แบบปกติ

b)

แสดงผล log ออกทาง console แบบมีสัญลักษณ์แจ้งเตือน

c)


แสดงผล log ออกทาง console แบบมีสัญลักษณ์ Error

d)

ไม่มีข้อใดถูก

23.

"2" > "12" ในภาษา JavaScript จะให้ผลลัพธ์เป็นอะไร

a)

NaN

b)

true

c)

false

d)

undefined

24.

ข้อใดสร้างตัวแปร Array ใน JavaScript ได้ถูกต้อง

a)

var name = ["a","b","c","d"];

b)

var name = ("a,"b","c","d");

c)

var name = {"a","b","c","d"}

d)

ถูกทุกข้อที่กล่าวมาก

25.

let กับ const ต่างกันอย่างไร

a)

let เปลี่ยนแปลงค่าได้ const ไม่สามารถเปลี่ยนแปลงค่าได้

b)

let กำหนดค่าได้ครั้งเดียว const กำหนดค่าได้หลายครั้ง

c)

let เก็บค่าตัวแลข const เก็บค่า string

d)

ถูกทุกข้อ