logo

Crowdly

Olympiad- Eng- Comp-Sciences-2

Looking for Olympiad- Eng- Comp-Sciences-2 test answers and solutions? Browse our comprehensive collection of verified answers for Olympiad- Eng- Comp-Sciences-2 at do.ipo.kpi.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

What will be the output of the following code?

#include <iostream>

using namespace std;

int main() {

    int a = 5;

    cout << a++ * ++a;

    return 0;

}

100%
0%
0%
0%
View this question
Which of the following statements best describes polymorphism in object-oriented programming?
100%
0%
0%
0%
View this question
What is the actual usable capacity of an SSD as 1 TB in an operating system?
0%
0%
0%
100%
View this question
What is the size of the following structure on a 64-bit system?

#include <iostream>

using namespace std;

struct MyStruct {

    char a;

    int b;

    double c;

};

int main() {

    cout << sizeof(MyStruct);

    return 0;

}

0%
67%
0%
33%
View this question
What will be the output of the following code?

#include <iostream>

using namespace std;

int main() {

    int x = 3, y = 5, z = 7;

    cout << x++ * ++y + --z * x-- / ++y;

    return 0;

}

0%
100%
0%
0%
View this question
What will be the output of the following code?

#include <stdio.h>

#include <stdlib.h>

#include <iostream>

#include <string.h>

using namespace std;

int main() {

    int num = 45, num2;

    char str1[10], str2[10];

    sprintf(str1, "%d", num);

    strcpy(str2, str1);

    strcat(str2, "AD");

    num2 = atoi(str2);

    printf("Converted number: %X\n", num2);

    return 0;

}

100%
0%
0%
0%
View this question
How many megabits (Mb) are there in 5 megabytes (MB)?
0%
0%
0%
100%
View this question
Which data structure uses the LIFO (Last In, First Out) principle?
0%
0%
0%
100%
View this question
Which of the following functions is used to dynamically allocate memory in C?
0%
0%
100%
0%
View this question
What will be the output of the following code?

#include <iostream>

using namespace std;

int func(int n) {

    if (n == 0)

        return 1;

    return n * func(n - 1);

}

int main() {

    cout << func(4);

    return 0;

}

0%
100%
0%
0%
View this question

Want instant access to all verified answers on do.ipo.kpi.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!