
Rust Programming for Beginners Pre/Post Test
Authored by Samit Koyom
Computers
6th - 8th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
คอมพิวเตอร์
Quiz
•
6th Grade
20 questions
โปรแกรม Scratch
Quiz
•
4th - 6th Grade
20 questions
ภาพคำถาม+คำถามกวนๆ
Quiz
•
4th - 12th Grade
20 questions
ข้อสอบวิทยาการคำนวณ หน่วย1 test1 ป.4
Quiz
•
1st - 6th Grade
20 questions
ฮาร์ดแวร์และซอฟต์แวร์
Quiz
•
7th Grade
20 questions
ข้อสอบ 1 วิชาคอมพิวเตอร์ flash cs6
Quiz
•
1st - 12th Grade
20 questions
แบบทดสอบก่อนเรียน - หลังเรียน การใช้โปรแกรม SketchUp
Quiz
•
7th - 9th Grade
15 questions
Computer ป.6
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade