logo

Crowdly

Browser

Додати до Chrome

Programming (UWE)

Шукаєте відповіді та рішення тестів для Programming (UWE)? Перегляньте нашу велику колекцію перевірених відповідей для Programming (UWE) в e.tsi.lv.

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

Question 3:

You are tasked with manipulating a dynamic 2D square matrix, where the size of the matrix will be provided by the user. Write a C++ program to achieve the following:

1)     Write a program that creates a dynamic 2D matrix of size N x N, where N is provided by the user.

2)     Fill the matrix with random integer numbers in the range from 0 to 100.

3)     The program should find the row with the minimum sum of elements and the column with the maximum average value.

4)     the program's operation must be accompanied by the output of a matrix, intermediate and final results.

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

4.

What is the output of the following program?

#include<iostream>

 

using

namespace std;

void f()

{

   static int i;

   ++i;

   cout<<i<<" ";

}

main() {

   f();

   f();

   f();

}

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

2.

Which of the following C++ conditions will evaluate as true?

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

24.

What

is the correct definition of a

variable in C++?

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

25.

Match

the data type in C++ with its typical size (on most modern systems with GCC

64-bit Windows):

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

26. How many times will this loop execute?

#include <iostream>

using namespace std;

int main() {

    int

count = 0;

    for

(int i = 0; i < 10; i++) {

       

i += 2;

       

count++;

    }

   

cout << count << endl;

   

return 0;

}

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

23.

What

will this program print?

#include

<iostream>

using

namespace std;

 

int

main() {

    int x = 3;

    if (x = 5) {

        cout << "True" <<

endl;

    } else {

        cout << "False"

<< endl;

    }

    return 0;

}

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

8.

Which statement correctly initializes an array of 5 integers with values 1, 2,

3, 4, and 5?

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

21. What is wrong with the following program?

#include

<iostream>

using

namespace std;

int

main() {

    int x;

    cout << "Enter a number: ";

    cin >> x;

    if (x = 5) {

        cout << "x is equal to

5" << endl;

    }

    return 0;

}

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

14.

What is the difference between a for loop and a while loop in C++?

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

Хочете миттєвий доступ до всіх перевірених відповідей на e.tsi.lv?

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

Browser

Додати до Chrome