Professional Documents
Culture Documents
Eeeb Labevln2 Set1
Eeeb Labevln2 Set1
Eeeb Labevln2 Set1
Course Outcomes
---------------------------------------------------------------------------------------------------------------------
SET – 1
Question 1:
There are two string arrays Country and Capital (2D character arrays)- the first one stores the
Country names and the second one stores corresponding capital city names. For example, if the
first string in Country is “India”, the first entry in Capital will be “New Delhi”. Write a C
program that contains a function to print the name of the country/countries, whose Capital City
name is the longest name in the Capital String array. For example, if Country = {“Angola”,
“Belarus”, “Canada”} and Capital = {“Luanda”, “Minsk”, “Ottawa”}, the function should
display both Angola and Canada as both of their capitals are 6-letters long are the largest ones in
the Capital Array. [CO4 BTL-3, 10 Marks]
Question 2:
Write a C program to find the products digits of a number using recursion. (Example digit 123,
answer 6)
[CO4 BTL-3, 10 Marks]
Rubrics for Evaluation:
Rubrics
*****