SASI -1st year -DAY4-AN (21.12.23)
Quiz
•
English
•
Professional Development
•
Practice Problem
•
Hard
CCC info@ccc.training
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; printf("%d", matrix[1][2]); return 0; }
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix1[2][2] = {{1, 2}, {3, 4}}; int matrix2[2][2] = {{5, 6}, {7, 8}}; int result[2][2]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { result[i][j] = matrix1[i][j] + matrix2[i][j]; } } printf("%d", result[1][1]); return 0; }
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix[2][2] = {{1, 2}, {3, 4}}; printf("%d", *(&matrix[0][0] + 2)); return 0; }
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; for (int i = 0; i < 3; i++) { for (int j = i+1; j < 3; j++) { int temp = matrix[i][j]; matrix[i][j] = matrix[j][i]; matrix[j][i] = temp; } } printf("%d", matrix[2][0]); return 0; }
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix[2][3] = {{1, 2, 3}, {4, 5, 6}}; int transpose[3][2]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 3; j++) { transpose[j][i] = matrix[i][j]; } } printf("%d", transpose[1][0]); return 0; }
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix[2][2] = {{1, 2}, {3, 4}}; int *ptr = matrix[0]; printf("%d", *(ptr + 2)); return 0; }
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h> int main() { int matrix1[2][3] = {{1, 2, 3}, {4, 5, 6}}; int matrix2[3][2] = {{7, 8}, {9, 10}, {11, 12}}; int result[2][2] = {0}; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { for (int k = 0; k < 3; k++) { result[i][j] += matrix1[i][k] * matrix2[k][j]; } } } printf("%d", result[1][0]); return 0; }
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
UK Culture
Quiz
•
4th Grade - Professio...
15 questions
[ENGLISH SUPER STAR] Week 2 - Technology
Quiz
•
Professional Development
12 questions
Briefing Partner
Quiz
•
Professional Development
11 questions
Inspector calls
Quiz
•
KG - Professional Dev...
15 questions
SASI -BATCH 3-DAY2-FN
Quiz
•
Professional Development
20 questions
World Records: Superlatives.
Quiz
•
Professional Development
15 questions
VCE-BETA-20.11.2023-AN
Quiz
•
Professional Development
20 questions
English for Beginners
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
