logo

Crowdly

Browser

Додати до Chrome

ICT1.002 BASIC PROGRAMMING (2025 - 2026)

Шукаєте відповіді та рішення тестів для ICT1.002 BASIC PROGRAMMING (2025 - 2026)? Перегляньте нашу велику колекцію перевірених відповідей для ICT1.002 BASIC PROGRAMMING (2025 - 2026) в moodle.usthlearningsupport.vn.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

In the "Optimized" Bubble Sort, what is the purpose of the swapped flag?

!
0%
0%
0%
0%
Переглянути це питання

#include <stdio.h>

#include <math.h>

int main() {

    int x = 16;

    double y;

    y = sqrt(x) + log10(100) - pow(2, 2);

    printf("%.0f\n", y);

    return 0;

}

!
Переглянути це питання

Before calling a function from a standard library in C, which directive should be used?

!
0%
0%
0%
0%
Переглянути це питання

Why is "rb" important on Windows for binary files?

!
Переглянути це питання

What is the output of this program?

char s[] = "mississippi";

int cnt = 0;

for(int i = 0; s[i]; i++)

    if(s[i] == 's' && i % 2 == 0) cnt++;

printf("%d", cnt);

!
Переглянути це питання

What is the output of this program?

int a[] = {1, 2, 3};

int cnt = 0;

for(int i = 0; i < 3; i++)

    for(int j = i+1; j < 3; j++)

        if(a[i] + a[j] > 3) cnt++;

printf("%d", cnt);

!
Переглянути це питання
What is the output?

#include <stdio.h>

void print(int n)

{

    if (n == 0)

        return;

    printf("%d ", n);

    print(n - 1);

}

int main()

{

    print(4);

    return 0;

}

!
Переглянути це питання

What will be printed by the following code?

void printList() {

    struct node *p = head;

    while (p != NULL) {

        printf("%d ", p->data);

        p = p->next;

    }

}

If head == NULL, the output is:

!
0%
0%
0%
0%
Переглянути це питання

What happens if you read past EOF using fgetc()?

!
Переглянути це питання

What is the primary purpose of a temporary variable (often called temp) when swapping two variables A and B?

!
0%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.usthlearningsupport.vn?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome