Search Header Logo

OS with C programming

Authored by Saksit Sirisakda

Computers

University

Used 14+ times

OS with C programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

ฟังก์ชันใน stdio.h ของภาษาซี ที่ใช้ในการแสดงผล

print();

printf();

prinf();

pinf();

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ข้อใดแสดงผลลัพธ์คำว่า Hello OS ออกมา

printf(Hello OS);

printf('Hello OS');

printf("Hello OS");

printf(Hello OS)

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ฟังก์ชันใน stdio.h ของภาษาซี ที่ใช้ในการรับค่าจากทางแป้นพิมพ์ผู้ใช้

scanf();

read();

in();

input();

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

รับค่าจำนวนเต็มใส่ให้ตัวแปรชื่อ number ยังไง

scanf("%d", &number)

scanf("%f", &number)

scanf("%s", &number)

scanf("%c", &number)

Answer explanation

Media Image

เราใส่ & เพื่อบอกว่าเอาที่อยู่หน่วยความจำ (memory address) ของตัวแปรตัวนั้น

สำหรับตัวแปรอาร์เรย์ ไม่ต้องใส่ เพราะตัวมันเก็บ memory address ของสมาชิกตัวแรกไว้อยู่แล้ว

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

%s ใช้บ่งบอกชนิดของค่าที่เป็นอักขระ (Character)

จริง

หลอก

Answer explanation

%s คือ ข้อความ

%c คือ อักขระ

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

ค่าชนิดสตริง (Type of string) ในภาษาซี โดยพื้นฐานแล้วไม่มี

จริง

หลอก

Answer explanation

เราสามารถสร้างสายอักขระ (String) ได้จากการสร้างอาร์เรย์ของอักขระแทน

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

ประกาศตัวแปรสตริง ทำอย่างไร

char a = "Hello";

char a[ ] = 'Hello';

string a = "Hello";

char a[ ] = "Hello";

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?