0% found this document useful (0 votes)
20 views

SCL Lab Model Questions

Scl
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)
20 views

SCL Lab Model Questions

Scl
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
You are on page 1/ 2

ECL 201 Scien fic Compu ng Lab

Lab Examina on Model Ques ons

1. Write a program to print the first 25 natural numbers.

2. Write a program to enter a four digit number. A er that, print the rightmost digit.

3. Write a program to Calculate the average of five numbers entered by the user and
display the result.

4. Write a program to Convert Fahrenheit to Celsius and display the result

5. Write a program to display the grades A, B, C, D, E, F and S, according to the marks


obtained.

6. Write a program to find the area and circumference of a circle. User is entering the
radius.

7. Write a program to find whether the entered year is leap year or not.

8. Write a program to print the mul plica on table of a number entered by the user.
(print first 10 rows in the table)

9. Write a program to plot the func on sin t for the vector t=[0,10] with increment of
0.1
10. Let A and B be two one-dimensional arrays showing the roll number and height of 5
students. Plot this.
11. Let A and B be two one-dimensional arrays showing the roll number and marks of 5
students. Plot this
12. Let A and B be two one-dimensional arrays showing the roll number and height of 5
students. Plot this
13. Write a program to print the first 10 numbers which are mul ples of 2 and 3.
3

14. Write and execute a func on to return the value of ∫ e t dt


||

−3

15. Write a program to print the first 10 numbers which are mul ples of 3 and 5.
16. Write and execute a func on to return first and second deriva ve of the func on
f(t) = 3t4 + 5

17. Write a program to find the sum of digits of a 3 digit number entered by a user.

18. Compute π for the first 10, 20, 50 and 100 terms of the series. Display the values in
each case.
19. Write a program to print the first 10 prime numbers.
20. Plot f(t) = cos(5t) for the vector t=[0,10] with increment of 0.1.

21. Write a program to display the grades A, B, C, D, E, F and S, according to the marks
obtained.

22. Write a program to compute the eigen values of a matrix A (say 5x5 matrix).Plot the
output. Find the transpose of the matrix A, find the eigen values and compare it with
the eigen values obtained earlier. (use library func on for eigen values).

23. Write a program to find the area and circumference of a circle. User is entering the
radius.

24. Write a program to solve the first order differen al equa on with an ini al condi on
of x(0) = 1.
dx
+ 2x = 0
dt

25. Write a program to calculate the SPGA for a student when grades of 5 subjects are
entered. Assume all subjects have 4 credits.

26. Plot f(t) = cos(t)cos(5t) + cos(5t) for the vector t=[0,10] with increment of 0.1.
27. Find the sum of the following series
x3 x5 xn
sum = x − + − …
3 ! 5! n!
28. Find the number of occurrence of each digit (0 to 9) in the number entered by user.

29. Write a program to find the largest of a 2D array of MxN numbers entered by the
user. Also find the sum of numbers of each row and print the result.

a) Without using library functions.


b) Using library functions.

30. Write a program to sort an array of 10 numbers in ascending order

a) Without using library functions.


b) Using library functions.

31. Consider the following waveform, x(t) as

x(t) =
{
sin ( 2512πt )+sin ( 70512πt ) , 5≤ t ≤ 75
0 , t elsewhere

You might also like