0% found this document useful (0 votes)
196 views4 pages

Scilab Practice Questions 2025

The document contains a series of Scilab practice questions covering various topics such as basic mathematical operations, matrix operations, solving systems of linear equations, loops, and conditional statements. Each section provides specific tasks or problems to solve, aimed at enhancing understanding and proficiency in Scilab programming. The questions range from simple calculations to more complex programming tasks involving loops and conditionals.

Uploaded by

namithasuresh087
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
196 views4 pages

Scilab Practice Questions 2025

The document contains a series of Scilab practice questions covering various topics such as basic mathematical operations, matrix operations, solving systems of linear equations, loops, and conditional statements. Each section provides specific tasks or problems to solve, aimed at enhancing understanding and proficiency in Scilab programming. The questions range from simple calculations to more complex programming tasks involving loops and conditionals.

Uploaded by

namithasuresh087
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Scilab Practice Questions

July 11, 2025

1. Basic Mathematical Operations


1. Evaluate: 12 + 8

2. Compute: 25 − 9

3. Calculate: 7 × 6

4. Find the result of: 40 ÷ 5

5. Compute: 35

6. Find the remainder when 17 is divided by 4.

7. Evaluate the expression: (4 + 5) × (7 − 2) ÷ 5



8. Calculate: 49

9. Write a program to compute area of a circle for radius = 5.

10. Write a program to compute simple interest for given P, R, and T.

2. Matrix Operations
1. Create a 2 × 2 matrix and display it.

2. Create two 2 × 2 matrices and add them.

3. Subtract matrix B from A.

4. Multiply two 2 × 2 matrices.

5. Find transpose of a matrix.

6. Find inverse of a 2 × 2 matrix.

7. Compute determinant of a 2 × 2 matrix.

1
8. Create a 3 × 3 identity matrix.

9. Create a 3 × 2 matrix using byrow option.

10. Access and display the element at second row, first column of a matrix.

3. Solving Systems of Linear Equations


1. Solve: (
x+y =4
x−y =2

2. Solve: (
2x + y = 5
4x − 3y = 6

3. Solve: 
x + y + z = 6

2x − y + 3z = 14

x + 2y − z = −2

4. Solve a system where one equation is dependent on another.

5. Solve a system with no solution and observe result.

6. Solve using inverse of coefficient matrix.

7. Use left division operator to solve:


(
3x + 2y = 12
x−y =1

8. Solve: 
4x − y + z = 10

2x + y + 3z = 20

x + 2y − z = 5

9. Solve a system with real number coefficients.

10. Solve a system and verify solution by substituting values.

2
4. for Loop
1. Display numbers from 1 to 10 using a for loop.

2. Print first 10 even numbers.

3. Print first 10 odd numbers.

4. Find sum of first 10 natural numbers.

5. Find sum of squares of numbers from 1 to 5.

6. Calculate factorial of a number using for loop.

7. Display multiplication table of 7.

8. Find sum of even numbers from 1 to 50.

9. Display characters A to Z using ASCII values.

10. Display powers of 2 from 20 to 210 .

5. if-else Statement
1. Check if a number is even or odd.

2. Check if a number is positive, negative or zero.

3. Find the greatest of two numbers.

4. Find the greatest of three numbers.

5. Check if a given year is a leap year.

6. Check whether a number is divisible by 3 and 5.

7. Print grade according to marks: A (¿=90), B (¿=75), C (¿=50), F (else).

8. Check if a character is a vowel or consonant.

9. Check if a number is a multiple of 4 or 6.

10. Print whether a number lies between 10 and 100.

3
6. while Loop
1. Print numbers from 1 to 10 using a while loop.

2. Find factorial of a number using while loop.

3. Compute sum of digits of a number.

4. Reverse the digits of a number.

5. Count the number of digits in a number.

6. Display Fibonacci series up to 10 terms.

7. Keep adding numbers until the sum exceeds 100.

8. Find first number divisible by both 7 and 11.

9. Check if a number is a palindrome.

10. Check if a number is an Armstrong number (e.g., 153).

7. Floor, Ceiling, Modulo, and Integer Operations


1. Find the floor of the number 7.8.

2. Find the ceiling of the number 4.2.

3. Compute: modulo(17, 5)

4. Compute: int(8.6)

5. Compute: floor(−2.4) and ceil(−2.4)

6. Check the remainder when 25 is divided by 7 using modulo.

7. Divide 13 by 4 and report quotient and remainder using integer division.

8. Compute: modulo(−10, 3)

9. Use floor and ceil to round values in a list: [3.1, 4.5, 6.7]

10. Round 5.75 to the nearest integer using round() function.

You might also like