FOP Practical Schedule 2024 RKS V1
FOP Practical Schedule 2024 RKS V1
Course Outcome
To be able to develop logic, flowcharts, pseudocode and algorithm to solve problem through programming. To learn about the data types,
1.
operators and functions in C programming language. (UNIT - 1)
To be able to write code in C programming language for a variety of problems. Understanding a functional hierarchical code organization. (UNIT
2. - 2)
Ability to define and manage data structures based on problem subject domain. Ability to work with textual information, characters and strings.
3. (UNIT - 3)
4. Ability to work with arrays of complex objects.(UNIT - 4)
Understanding a concept of object thinking within the framework of functional model. Understanding a defensive programming concept. Ability
5.
to handle possible errors during program execution (UNIT - 5)
A
AB
ABC
ABCD
ABCDE
19.
53. What will the output of following program. Justify your answer with proper reason.
#include<stdio.h>
void main()
{
printf(“number=%3d\n”, 10);
printf(“number=%2d\n”, 10);
printf(“number=%1d\n”, 10);
printf(“number=%7.2f\n”, 5.4321);
20. printf(“number=%.2f\n”, 5.4391);
printf(“number=%.9f\n”, 5.4321);
}
54. What will the output of following program. Justify your answer with proper reason.
#include <stdio.h>
void main()
{
printf(“%s”,“hello”);
printf(“\n%3s”,“hello”);
printf(“\n%10s”,“hello”);
printf(“\n%-10s”,“hello”);
printf(“\n%10.3s”,“hello”);
}
55. Write a program to find out and print all prime numbers lying between 1 to 200.
56. To check whether the giver number is palindrome or not.
21. 57. Write a program to Check whether number is Armstrong or not.
58. Write a program to find greatest common divisor [GCD] for two positive integer
59. Write a program to accept numbers from the user till their sum exceeds 50.
22. 60. Print first 50 odd numbers. Note that program should display only five numbers per line.