Rust Programming for Beginners Pre/Post Test

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Samit Koyom
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Rust ถูกออกแบบมาเพื่อเน้นอะไรเป็นสำคัญ
ความปลอดภัยหน่วยความจำและประสิทธิภาพ
การจัดการ garbage collection
ความง่ายในการใช้งานของผู้เริ่มต้น
การทำงานร่วมกับ Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่งใดใช้ติดตั้ง Rust ผ่านเครื่องมือหลัก
rustc install
rustup install stable
cargo install rust
install rustc
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ไฟล์ไหนใช้สำหรับจัดการ dependencies ในโครงการ Rust
Cargo.lock
rust.toml
Cargo.toml
Makefile
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
คำสั่งใดใช้ฟอร์แมตโค้ดโดยอัตโนมัติ
cargo check
cargo fmt
cargo clippy
cargo run
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
จุดเด่นของ String กับ &str ใน Rust คืออะไร
String เก็บค่าใน heap, &str เก็บใน stack เสมอ
String คือ Vec<u8> ที่เข้ารหัส UTF‑8 ได้, &str คือ slice ของ bytes
String ไม่รองรับ UTF‑8
ทั้งสองเหมือนกัน
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if/else ใน Rust ถือเป็นอะไร
statement
loop
expression ที่คืนค่าได้
macro
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
ในภาษา Rust เหตุใดการเรียกใช้ `println!` จึงต้องมีเครื่องหมายอัศเจรีย์ (`!`) ต่อท้าย?
เพื่อบ่งบอกว่าฟังก์ชันนี้จะทำให้โปรแกรมหยุดการทำงาน (panic)
เพื่อบ่งบอกว่าฟังก์ชันนี้รับจำนวนอาร์กิวเมนต์ไม่จำกัด
เพื่อบ่งบอกว่าเป็นการเรียกใช้มาโคร (macro) ไม่ใช่ฟังก์ชัน (function)
เพื่อบ่งบอกว่าฟังก์ชันนี้เป็นฟังก์ชันที่ไม่ปลอดภัย (unsafe)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ทดสอบ พรบ.คุ้มครองข้อมูลส่วนบุคคล พ.ศ. 2562

Quiz
•
6th Grade
24 questions
แบบฝึกหัด IoT

Quiz
•
6th - 8th Grade
20 questions
TUP Tech Open house Open mine

Quiz
•
6th Grade
20 questions
ความปลอดภัยในการใช้งานเทคโนโลยี ป.6

Quiz
•
6th Grade
20 questions
ทดสอบกลางภาค ม.3

Quiz
•
6th - 8th Grade
20 questions
การใช้งานสารสนเทศอย่างปลอดภัย ม.2

Quiz
•
8th Grade
20 questions
ข้อสอบกลางภาค วิทยาการคำนวณ ม.3

Quiz
•
6th - 8th Grade
20 questions
การใช้งานอินเทอร์เน็ตอย่างมีประสิทธิภาพ ป.6

Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade