logo

Crowdly

Browser

Add to Chrome

Programming (UWE)

Looking for Programming (UWE) test answers and solutions? Browse our comprehensive collection of verified answers for Programming (UWE) at e.tsi.lv.

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

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.

View this question

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%
View this question

2.

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

0%
0%
0%
100%
View this question

24.

What

is the correct definition of a

variable in C++?

0%
0%
0%
100%
View this question

25.

Match

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

64-bit Windows):

View this question

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%
View this question

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%
View this question

8.

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

3, 4, and 5?

0%
100%
0%
0%
View this question

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%
View this question

14.

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

100%
0%
0%
0%
View this question

Want instant access to all verified answers on e.tsi.lv?

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

Browser

Add to Chrome