คำถามเกี่ยวกับภาษา C++

คำถามเกี่ยวกับภาษา C++

9th - 12th Grade

13 Qs

quiz-placeholder

Similar activities

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

Parcial-Dibujo

Parcial-Dibujo

12th Grade

10 Qs

กลุ่มงานบริหารงานบุคคล

กลุ่มงานบริหารงานบุคคล

7th - 12th Grade

10 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Programing test

Programing test

1st Grade - University

10 Qs

เทคโนโลยีและนวัตกรรม

เทคโนโลยีและนวัตกรรม

12th Grade

15 Qs

ข้อมูลข่าวสาร

ข้อมูลข่าวสาร

11th Grade

10 Qs

วิทยาการคำนวณ ม.4 : ระบบทางเทคโนโลยี

วิทยาการคำนวณ ม.4 : ระบบทางเทคโนโลยี

10th Grade

10 Qs

คำถามเกี่ยวกับภาษา C++

คำถามเกี่ยวกับภาษา C++

Assessment

Passage

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

ภัทรพล อาจสันเทียะ

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • 2 pts

การกำหนดค่าเริ่มต้นให้กับตัวแปรในภาษา C++ ทำอย่างไร? ยกตัวอย่าง

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่งในการแสดงผลค่าตัวแปร int a = 5; ด้วย cout ต้องเขียนอย่างไร?

a) cout << a;

b) cin << a;

c) cout >> a;

d) cin >> a;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ชนิดข้อมูล (data types) ในภาษา C++ มีอะไรบ้างที่สำคัญที่สุด? ยกตัวอย่างอย่างน้อย 3 ชนิดข้อมูล

a) int, float, char

b) string, array, map

c) double, pointer, vector

d) bool, long, list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

อธิบายวิธีการประกาศตัวแปรชนิดจำนวนเต็มในภาษา C++

a) string x;

b) float x;

c) int x;

d) char x;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

อธิบายความหมายของคำสั่ง #include ในภาษา C++

a) ใช้ในการวนลูปในโปรแกรม

b) ใช้ในการแสดงผลข้อมูล

c) ใช้ในการนำเข้าหัวข้อของไลบรารีที่ใช้สำหรับการรับ-ส่งข้อมูลทางมาตรฐาน

d) ใช้ในการประกาศตัวแปร

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

อธิบายความแตกต่างระหว่างตัวแปร int กับ float

a) int เป็นตัวแปรชนิดจำนวนเต็ม ไม่มีจุดทศนิยม ส่วน float เป็นตัวแปรชนิดจำนวนทศนิยม

b) int เป็นตัวแปรชนิดจำนวนทศนิยม ส่วน float เป็นตัวแปรชนิดจำนวนเต็ม

c) int และ float เป็นตัวแปรชนิดเดียวกัน

d) int

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

คำสั่ง cout และ cin ในภาษา C++ ใช้ทำอะไร? ยกตัวอย่างการใช้งาน

a) cout ใช้สำหรับรับค่า cin ใช้สำหรับแสดงผล

b) cout และ cin ใช้สำหรับการวนลูปในโปรแกรม

c) cout ใช้สำหรับแสดงผล cin ใช้สำหรับรับค่า

d) cout และ cin ใช้ในการประกาศตัวแปร

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?