[FE] Ice Breaking - TypeScript Fundamentals and Data Structures

Quiz
•
Information Technology (IT)
•
Professional Development
•
Hard
PO Bootcamp
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa itu TypeScript?
Bahasa pemrograman yang berfokus pada manipulasi DOM
Bahasa pemrograman yang menggantikan JavaScript sepenuhnya
Framework untuk membangun aplikasi web
Superset dari JavaScript yang mendukung tipe statis
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan utama antara TypeScript dan JavaScript?
TypeScript hanya dapat digunakan di backend
TypeScript memiliki dukungan untuk tipe statis, sementara JavaScript tidak
JavaScript mendukung tipe statis, tetapi TypeScript tidak
TypeScript adalah bahasa pemrograman yang lebih lambat dibandingkan JavaScript
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi dari "type annotations" dalam TypeScript?
Untuk menentukan jenis data dari variabel, fungsi, atau parameter
Untuk mengonversi data dari satu tipe ke tipe lain
Untuk mempercepat eksekusi kode
Untuk menginisialisasi variabel dengan nilai default
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendefinisikan tipe variabel dalam TypeScript?
let age = number;
let age: number;
let number: age;
let number = age;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa kegunaan dari interface dalam TypeScript?
Untuk menetapkan tipe data pada variabel
Untuk menginisialisasi array
Untuk mengubah fungsi menjadi kelas
Untuk mendefinisikan struktur objek
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan antara interface dan type alias dalam TypeScript?
interface dapat digunakan untuk tipe primitif, sedangkan type alias tidak
interface hanya bisa digunakan untuk mendefinisikan tipe objek, sementara type alias lebih fleksibel
type alias hanya bisa digunakan untuk tipe objek, sedangkan interface untuk semua tipe
Tidak ada perbedaan antara interface dan type alias
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendefinisikan fungsi dengan tipe parameter dan tipe return di TypeScript?
function add(a: number, b: number): string { return a + b; }
function add(a, b: number) => number { return a + b; }
function add(a: number, b: number): number { return a + b; }
function add(a: string, b: string): number { return a + b; }
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
JavaScript Conditional Logic Quiz

Quiz
•
Professional Development
10 questions
Quiz tentang Div dan Span untuk Layout Web

Quiz
•
Professional Development
9 questions
[FE] Ice Breaking - Introduction to Next JS and Routing

Quiz
•
Professional Development
15 questions
Knowledge Check 4 (Final)

Quiz
•
Professional Development
10 questions
Web Development Mastery

Quiz
•
Professional Development
10 questions
Pemrograman Dasar C++

Quiz
•
Professional Development
10 questions
JavaScript Operators and Expressions Quiz

Quiz
•
Professional Development
10 questions
Ethical Hacking Kali Linux Part 3

Quiz
•
Professional Development
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade