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!
int x = 7;
int *p = &x;
int **pp = &p;
printf("%d", **pp);
Which of the following correctly describes how a function is called (invoked) in C?
Consider the following code:
struct node {
int data;
struct node *next;
};
struct node *head = NULL;
void insert(int data) {
struct node *n = malloc(sizeof(struct node));
n->data = data;
n->next = head;
head = n;
}
After executing:
insert(10);
insert(20);
insert(30);
What is the correct order of elements in the list?
What is the output of this program?
#include<stdio.h>
int main() {
int a[5] = {4, 9, 1, 5, 6};
printf("%d \n", *(a+2));
return 0;
}
Comparing Linear Search and Binary Search, which statement is true?
#include <stdio.h>
int main() {
int x=10;
printf("%d, %d, %d\n", x<1, x=100, x>=10);
return 0;
}
In a program split into two files (say_hello.h and say_hello.c), where should the function prototype be placed?