CIA 1 Questions
CIA 1 Questions
CIA 1 Questions
General Instructions:
If there is a syntactical mistake, specify which line of code causes an error and why.
If there is an infinite loop, then give the values for the first iteration and then specify
infinite loop.
If more than one option is correct, mark all the options.
Justification needed for True / False or Yes / No questions.
Answers should be written in a separate A4 sheet.
If any malpractice is found, CIA will be evaluated to zero.
SECTION A (2x22=44)
SECTION B (3x2=6)
1. Write a function to find the square of a given number and return it.
2. Write a program to find the largest of any two numbers.