
Session 2 : Multiple Choice
Authored by Jirapod Jintasornrom
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which of the following is the correct way to declare an integer variable in C?
num integer;
num int;
integer num;
int num;
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which data type is used to store a single character in C?
string
char
character
text
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the correct way to declare a floating-point variable in C
int x = 10.5;
float x = 10.5;
real x = 10.5;
decimal x = 10.5;
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which data type is suitable for storing a person's age in C ?
float
double
int
char
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the correct data type to use for a variable that stores whole numbers in C
float
decimal
number
int
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
You're developing a weather application that needs to store temperature values with decimal precision. Which data type is most appropriate?
int
long
char
float
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
In a program that calculates the area of a circle, which data type should be used to store the value of pi (π) with high precision?
int
float
char
long
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?