You are on page 1of 1

INTI INTERNATIONAL UNIVERSITY

ICT1109: PROGRAMMING AND ROBOTS

TEST 2
TIME: 2 Hours
ANSWER ALL QUESTIONS

Question 1

Write a C program to convert decimal to octal numbering system. Print a message which shows
the selection to ask the user to key in decimal number. The program should write using loop
statement.
(33 marks)

Question 2

Write a C program to check alphabet, digit or special character. Print a message which shows the
selection to ask the user to choose the option. The program should be written only using if else
statement.
(33 marks)

Question 3

Write a C program to perform quadratic equation. The program should able to solve second order
function and display the answer in real and imaginary part. The program should be written using
math.h as a header file in the standard library and if else statement.
(34 marks)

You might also like