Search Header Logo

Test C++

Authored by LUKNAPA GAEWKHAMJAENG

Computers

10th Grade

Used 12+ times

Test C++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ถ้าต้องการเก็บข้อมูลเกี่ยวกับผลการเรียน เช่น 'A' ควรกำหนดชนิดข้อมูลของตัวแปรดังข้อใด

char

float

int

string

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

การใช้ฟังก์ชั่น printf() ข้อใดไม่ถูกต้อง

printf("12345");

printf("THAILND");

printf('COMPUTER');

printf("5 + 2 = %d",5+2);

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใด ไม่ใช่ ชนิดของข้อมูลในภาษาซี

float

int

string

char

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

ข้อใด เป็นการประกาศตัวแปร i เป็นชนิดจำนวนเต็ม พร้อมกำหนดค่าเริ่มต้นให้เป็น 10

int i = 10 ;

float i = 10;

int i;

float i;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ถ้าหากต้องการให้ฟังก์ชั่น printf() แสดงผลเป็นตัวอักขระ จะต้องใช้รหัสควบคุมตัวใด

%s

%x

%f

%c

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

รหัสรูปแบบข้อมูลที่ใช้กับข้อมูลประเภทเลขจำนวนเต็ม คือรหัสรูปแบบข้อมูลใด

%s

%x

%f

%d

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

จากโปรแกรมต่อไปนี้ บรรทัดใดของโปรแกรมผิด

#include<stdio.h> ............(1)

main() ............(2)

{ .........(3)

Printf("Welcome to RMUT"); .........(4)

}

1

2

3

4

Access all questions and much more by creating a free account

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?