Professional Documents
Culture Documents
:16BT10501 SVEC16
3. a) Write the difference between break and continue statement with examples. 7 Marks
b) Suppose a break statement is included with in the innermost of several nested 7 Marks
control statement, what happens when break statement is executed.
(OR)
4. a) Given the marks obtained by the students, maximum marks and pass marks in 7 Marks
three subjects. Design an algorithm and draw flowchart to find whether the
student passed or not, if the student passes determine the percentage marks and
grade.
The grade is determined as follows:
i) percentage marks >=80 grade is A
ii) percentage marks >=70 and <80 grade is B
iii) percentage marks >=60 and <70 grade is C
iv) percentage marks >=50 and <60 grade is D
v) percentage marks <50 grade is F
b) Can a default alternative be defined within a switch statement? If so, how 7 Marks
would the default alternative is labeled?
1
7. a) Develop a program to read two strings str1 and str2 and then find out whether 7 Marks
the string str2 is the substring of str1or not.
b) Develop a program to read two strings str1 and str2 from the user and then find 7 Marks
whether the given two strings are equal or not without using string.h library
functions.
(OR)
8. a) Compare array of Characters and Pointer to characters. 7 Marks
b) Explain how to pass a Pointer array to a function. 7 Marks