Rust Programming for Beginners Pre/Post Test
Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Samit Koyom
Used 3+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
โปรแกรม scratch
Quiz
•
4th - 6th Grade
24 questions
แบบฝึกหัด IoT
Quiz
•
6th - 8th Grade
20 questions
ข้อสอบหุ่นยนต์ ม.2 กลางภาคเรียนที่ 1
Quiz
•
8th Grade
22 questions
Coding basics
Quiz
•
4th - 12th Grade
20 questions
แบบทดสอบ Scratch
Quiz
•
6th Grade
20 questions
การใช้งานสารสนเทศอย่างปลอดภัย ม.2
Quiz
•
8th Grade
20 questions
ข้อสอบกลางภาค วิทยาการคำนวณ ม.3
Quiz
•
6th - 8th Grade
20 questions
ทดสอบ พรบ.คุ้มครองข้อมูลส่วนบุคคล พ.ศ. 2562
Quiz
•
6th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
