logo

Crowdly

Browser

Add to Chrome

Questions Bank (1544042 total)

Adott:

typedef struct {

    int capacity;

    int top;

    int *elements;

} Stack;

és az alábbi függvény:

void createStack(int capacity, Stack *stack) {

    stack->capacity = capacity;

    stack->top = -1;

    stack->elements = (int*)calloc(stack->capacity, sizeof(int));

    if (!stack->elements) {

        printf("MEMORY_ALLOCATION_ERROR_MESSAGE");

        exit(-3);

    }

}

A fenti függvény helyesen inicializálja a verem struktúrát, és biztonságosan ellenőrzi a memóriafoglalást.

100%
0%
View this question

What does the term "slush" stand for?

0%
0%
0%
0%
View this question

Information concerning snow, ice and standing water associated with snow on aerodrome pavement areas is to be reported by:

0%
0%
0%
0%
View this question

According to ICAO Annex 15 and PANS-AIM, in which part of the AIP are the differences from the ICAO Standards detailed?

0%
0%
0%
0%
View this question

Adott az alábbi Stack típus:

typedef struct {

    int capacity;

    int top;

    int *elements;

} Stack;

Továbbá a következő függvények:

  • createStack(capacity, &stack) – létrehoz egy üres vermet adott kapacitással

  • push(&stack, x) – hozzáadja az x elemet a verem tetejére, ha nincs tele

  • pop(&stack) – eltávolítja és visszaadja a legfelső elemet

  • peek(&stack) – visszaadja a legfelső elemet, de nem távolítja el

Mit ír ki az alábbi program?

int main(void)

{

    Stack stack;

    createStack(4, &stack);

    push(&stack, 10);

    push(&stack, 20);

    printf("%d ", peek(&stack));

    printf("%d ", pop(&stack));

    push(&stack, 30);

    printf("%d ", peek(&stack));

    printf("%d ", pop(&stack));

    printf("%d ", pop(&stack));

}

View this question

Mi az alábbi kódrészlet eredménye?

0%
0%
0%
0%
View this question

Which of these is a primary function of IATA?

❌
✅
❌
❌
View this question

A team is working on a project that requires creativity in designing visual content, effective communication for marketing, and efficient handling of logistics. Different team members excel in these various tasks.

Which theory of intelligence best explains the need for different team members to excel in different areas to ensure the project's success?

0%
0%
0%
100%
View this question

Match the following descriptions of select concepts of motivation to its corresponding concept. 

View this question

Using at least one of the theories/concepts of motivation learnt in PSY 111, explain how motivation may drive a student to participate or give up in today’s Jeopardy activity.

View this question