Looking for ICT1.002 BASIC PROGRAMMING (2025 - 2026) test answers and solutions? Browse our comprehensive collection of verified answers for ICT1.002 BASIC PROGRAMMING (2025 - 2026) at moodle.usthlearningsupport.vn.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
In Bubble Sort, after the first complete pass through an array of n elements (sorted ascending), which element is guaranteed to be in its correct final position?
What is the main objective of a variable?
Which statement best describes const int *p?
In the "Parking Lot" analogy for swapping, what does the "Empty Spot C" represent?
What is printed?
push(10);
push(20);
push(30);
pop();
printf("%d", peek());
Which conversion character is used to print a decimal integer?
What is wrong with the following code?
struct node* createNode(int x) {
struct node n;
n.data = x;
n.next = NULL;
return &n;
}
What is the output of this program?
int a[] = {3, 1, 4, 2};
int mx = a[0];
for(int i = 1; i < 4; i++)
if(a[i] > mx) mx = a[i];
printf("%d", mx);
The operator used to access the value of variable at address stored in a pointer
variable is?
int a[] = {10, 20, 30};
int *p = a;
printf("%d", *(p + 1));