Search Header Logo

Typescript

Authored by Văn Vụ

Computers

University

Used 13+ times

Typescript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

46 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Cho một mảng số nguyên, hãy viết một hàm TypeScript để tính tổng các số trong mảng.

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Trong TypeScript, kiểu dữ liệu cơ bản nào được sử dụng để biểu diễn các số nguyên không dấu 32 bit?

number

bigint

uint32

int

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểu dữ liệu nào được sử dụng để biểu diễn các giá trị true hoặc false trong TypeScript?

boolean

bool

truefalse

flag

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong TypeScript, từ khóa nào được sử dụng để khai báo một biến có kiểu dữ liệu không thay đổi sau khi gán giá trị ban đầu?

const

let

var

type

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cách đúng để xác định một union type trong TypeScript?

type MyType = string | number;

union MyType = string, number;

interface MyType = string, number;

let MyType = string & number;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong TypeScript, để xác định một kiểu enum, ta sử dụng từ khóa nào?

enum

type

let

const

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kiểu dữ liệu nào dưới đây được sử dụng để xác định một kiểu enum trong TypeScript?

enum Type

type EnumType

enum

enumValue

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?