logo

Crowdly

Basic Programming

Шукаєте відповіді та рішення тестів для Basic Programming? Перегляньте нашу велику колекцію перевірених відповідей для Basic Programming в moodle.usthlearningsupport.vn.

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

What is the output of the following code?

    #include <stdio.h>

#define SQUARE(x) x*x

int main() {

int a = 3;

printf("%d", SQUARE(a+1));

return 0;

}

Переглянути це питання
What is the size of `int` in most modern compilers?
Переглянути це питання

What will happen when this program runs?

    #include <stdio.h>

int main() {

int i = 5;

for (; i >= 0; i--) {

printf("%d ", i);

i++;

}

return 0;

}

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

What will be the output of the following code?

#include <stdio.h>

void main() {

char str[] = "Hello";

printf("%c", str[6]);

}

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

What will be the output of the following C code?

#include <stdio.h>

int main() {

int x = 2, y = 5;

printf("%d", x & y);

return 0;

}

Переглянути це питання
Which function is used to read a character from a file in C?
Переглянути це питання

#include <stdio.h>

void main() {

int x = 5;

if (x < 1)

printf("hello");

if (x == 5)

printf("hi");

else

printf("no");

}

What is the output?

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

What does the following code print?

#include <stdio.h>

#define SQUARE(x) x*x

int main() {

printf("%d", SQUARE(4+1));

return 0;

}

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

What will be the output of the following C program?

#include <stdio.h>

void main() {

int arr[] = {1, 2, 3, 4, 5};

printf("%d", *(arr + 2));

}

Переглянути це питання
Which symbol is used to define a preprocessor directive in C?
100%
0%
0%
0%
Переглянути це питання

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

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