Matrix Basics
Operations
Programming
Common Errors
Applications
100

What is a matrix in a computer science?

A Two dimensional data sctructure made of rows and columns

100

What operation is possible only if two matrices have the same dimensions?

Addition

100

How is a matrix usually rapresented in programming languages?

As a two-dimensional array

100

What happens if you access an index that not exist?

A runtime error

100

What is matrices commonly used?

Graphics, games, data prosessing and images

200

How do you descibe the size of a matrix?

Rows x Columns ( ex. 3 x 4)

200

What happens when tou add two matrices?

Corresponding elements are added together

200

How do you access an element of a matrix?

Using two indices: row and column

200

What is the problem with mixing up rows and columns?

Program crashes or Incorrect result

200

How is an image represented in computer science?

As a matrix made of pixels

300

How do you call a matrix with only one row?

Row matrix

300

When can two matrices be multiplied?

When the number of columns of the first equals the number of rows of the second

300

Which control structure is commonly used to scan a matrix?

Two nested loops

300

Why it is important to inizialize a matrix?

To avoid undefined or null values

400

What is a traspose matrix?

A matrix obtained by swapping rows and columns

400

What happens if you try to multiply incompatible matrices?

The result of the operation is "not defined"

500

What is a square matrix?

A matrix with the same number of rows and columns

500

What is the identity matrix?

A square matrix with 1s on the main diagonal and 0s elsewhere

500

Why can large matrices slow down a program?

They require a lot of memory and computation time