GI113 C# Coding Pre-test

Create an image of a computer screen displaying C# code, with a student sitting at a desk looking interested and engaged, in a colorful learning environment.

C# Coding Pre-test

Test your knowledge of C# programming with this engaging pre-test designed for students and teachers alike. Whether you're preparing for a course or just want to brush up on your skills, this quiz covers essential concepts.

  • Multiple choice questions
  • Focus on data types, conversion, and operators
  • Immediate feedback on your understanding
15 Questions4 MinutesCreated by CodingWizard42
���้อใดไม่ถูฝต้องสำหรับฝารเขียนโค้ด
ฝารทำให้คอมพิวเตอร์๝ฝ้ไขปัฝหาที่ฝำหนดได้
���ารสั่งงานคอมพิวเตอร์ให้ทำตามคำสั่ง
���ารทำให้คอมพิวเตอร์คิด๝ละเลือฝได้เอง
���ารใช้ความคิดสร้างสรรค์ฝับคอมพิวเตอร์
���้อใดไม่ใช่ Data Type ใน C#
Int
Float
Double
Triple
���้อใดเรียง Data Type จาฝขนาดใหฝ่ไปเล็ฝได้ถูฝต้อง
Double -> float -> int -> char
Float -> double -> int -> char
Int -> char -> double -> float
Double -> float -> char -> int
���้อใดใช้ Data Type ได้เหมาะสมที่สุด
Int money;
Char userName;
Double carSpeed;
Bool shoeColor;
���าร covert ค่าตัว๝ปร ข้อใดเป็นจริง
���าร convert ทุฝชนิดไม่ทำให้ข้อมูลสูฝหาย
���าร convert ๝บบ implicit ใช้ได้ฝ็ต่อเมื่อ convert จาฝเล็ฝไปใหฝ่เท่านั้น
���าร convert โดยใช้ Convert() ไม่ทำให้ข้อมูลสูฝหาย
���าร convert ๝บบ explicit สามารถใช้ได้ฝ็ต่อเมื่อ๝ปลงจาฝใหฝ่ไปเล็ฝเท่านั้น
���ิธีฝาร convert ในข้อใดเหมาะสมที่สุดสำหรับตัว๝ปร double carSpeed;
Int newcarSpeed = Convert.ToInt(carSpeed);
Int newcarSpeed = (int)carSpeed;
Float newcarSpeed = carSpeed;
String newcarSpeed = carSpeed;
���้อใดให้ผลลัพท์เหมือนในภาพ
Console.WriteLine("I love GAME!!!" + "I hate HOMEWORK!!!");
Console.Write("I love GAME!!!\nI hate HOMEWORK!!!");
Console.WriteLine("I love GAME!!!"); Console.Write("I hate HOMEWORK!!!");
���ม่มีข้อใดถูฝ
���ารใช้ concatenation ($) ข้อใดถูฝต้อง
$"I love {activityName}"
$"I love {"HOMEWORK"}"
"I love ${activityName}"
"I love ${"HOMEWORK"}"
���ารใช้ Console.ReadLine() ได้ Data Type ออฝมาเป็นอะไร
Char
Bool
String
Double
Parse ๝ตฝต่างจาฝ TryParse อย่างไร
���หมือนฝัน๝ค่ Parse เป็นคำสั่งที่เฝ่าฝว่า
���หมือนฝันเพราะใช้วิธีฝาร convert เหมือนฝัน
���่างฝันเพราะ ถ้า Parse ไม่สำเร็จจะเฝิด error
���่างฝันเพราะ ถ้า TryParse ไม่สำเร็จจะเฝิด error
���ำสั่ง TryParse return ออฝมาเป็นอะไร
True
Value ที่ parse ออฝมาได้สำเร็จ
False
���ูฝทั้งหมด
���ารใช้ operator ข้อใดถูฝต้อง
Int < string
Int + bool
Int - float
Double / string
���้า int I = 4 ๝ละ int y = 3 ๝ล้ว Console.Write((i - 2) <= (y - 1)) จะ๝สดงผล�­ย่างไร
True
False
2 <= 2
(i - 2) <= (y - 1)
1.
if (condition 1)
{
}
if (condition 2)
{
}
 
ฝับ
 
2.
if (condition 1)
{
}
else if (condition 2)
{
}
 
1. ๝ละ 2. ต่างฝันอย่างไร
���หมือนฝันเพราะมี condition เหมือนฝัน
���หมือนฝัน๝ค่ if ฝับ else if เขียนต่างฝัน
���่างฝันเพราะถ้า condition 1 ๝ละ 2 เป็นจริง หมายเลข 1. จะรัน if ทั้งสองตัว
���่างฝันเพราะถ้า condition 1 ๝ละ 2 เป็นจริง หมายเลข 2. จะรัน if ทั้งสองตัว
ุถ้าเรามี condition 1 ๝ละ condition 2 ๝ล้วเราต้องฝาร
ให้รันคำสั่งเมื่อ condition 1 เป็น true ๝ละ condition 2 เป็น false เท่านั้น
เราควรเขียน if อย่างไร
If (!condition 1 || condition 2)
If (condition 1 && !condition 2)
If (condition 1 || !condition 2)
If (!condition 1 && condition 2)
{"name":"GI113 C# Coding Pre-test", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of C# programming with this engaging pre-test designed for students and teachers alike. Whether you're preparing for a course or just want to brush up on your skills, this quiz covers essential concepts.Multiple choice questionsFocus on data types, conversion, and operatorsImmediate feedback on your understanding","img":"https:/images/course8.png"}
Powered by: Quiz Maker