Mohammad Ali Jinnah University, Islamabad Campus Quiz#9 Course Title Computer Programming (for Engineers) Instructor Maryam Kausar Weightage 2% Question 1: Write a program to sort an array of 5 integers which are { 1,5,3,2,4}. Using bubble sort. Question 2: Determine the output of the following program. #include <iostream> using namespace std; int main() { int myarr[2][3]; for(int r = 0; r < 2; r++) { for(int c = 0; c < 3; c++) { myarr[r][c] = r*c+1; } } for(r = 0; r < 2; r++) { for(int c = 0; c < 3; c++) { cout << myarr[r][c] << " "; } cout << endl; } return 0; } 1 1 1 1 2 3 docsity.com