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
สอบเก็บคะแนนครั้งที่ 2 การออกแบบและเทคโนโลยี ม.3

Quiz
•
8th Grade
20 questions
microbit

Quiz
•
6th Grade
20 questions
มาแก้ปัญหากันเถอะ (เทคโนโลยี การออกแบบและเทคโนโลยี)

Quiz
•
8th Grade
20 questions
วิทยาการคำนวณมัธยมศึกษา

Quiz
•
1st Grade - University
20 questions
แบบทดสอบก่อนเรียน เรื่อง การใช้เทคโนโลยีฯ

Quiz
•
8th Grade
20 questions
แบบทดสอบก่อนเรียน เรื่องการแก้ปัญหาด้วย scratch

Quiz
•
8th Grade - University
20 questions
สอบปลายภาคม.1

Quiz
•
6th Grade
20 questions
แบบทดสอบปลายภาควิชาการเขียนโปรแกรมไพทอน ม.4/2

Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade