
Basic C Programming
Authored by Makara Uk
Information Technology (IT)
University
Used 2+ times

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
20 sec • 1 pt
១. តើក្បាល (header file) មួយណាដែលចាំបាច់ត្រូវតែមានដើម្បីប្រើប្រាស់អនុគមន៍ printf() និង scanf() ?
<stdlib.h>
<stdio.h>
<string.h>
<math.h>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
តើអ្វីជាប្រភេទទិន្នន័យ (data type) ដែលប្រើដើម្បីផ្ទុកតម្លៃជាអក្សរតែមួយ (single character)?
int
float
char
string
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
តើអ្វីជាប្រតិបត្តិករ (operator) ដែលត្រូវបានប្រើដើម្បីពិនិត្យមើលថាតើតម្លៃពីរស្មើគ្នាដែរឬទេ?
=
==
!=
=>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
តើ main() ជាអ្វីក្នុងកម្មវិធី C?
អថេរមួយ
ប្រភេទទិន្នន័យមួយ
អនុគមន៍ (function) ដែលកម្មវិធីចាប់ផ្តើមដំណើរការ
ពាក្យគន្លឹះមួយ
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
តើលទ្ធផលនៃកូដខាងក្រោមនេះជាអ្វី?
int num = 7;
if (num > 5) {
printf("Hello");
} else {
printf("World");
}
World
HelloWorld
Hello
កំហុស (error)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
តើប្រតិបត្តិករ (operator) មួយណាដែលត្រូវបានប្រើដើម្បីទទួលបានអាសយដ្ឋានអង្គចងចាំ (memory address) របស់អថេរ?
&
*
->
.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
តើលទ្ធផលនៃកូដខាងក្រោមនេះជាអ្វី?
int x = 5;
switch (x) {
case 1:
printf("One");
break;
case 5:
printf("Five");
break;
case 10:
printf("Ten");
break;
default:
printf("Other");
}
One
Five
Ten
Other
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?