Issue Date 08-10-2024 Last Date of Submission: 18-11-2024
ASSIGNMENT SEM V
2024-25
UGDCA
SUBMITTED BY:
NAME: ____________
FATHER’S NAME: ___________
ROLL NO: 22836DA_ _ _
EMAIL ID :____________
1
Issue Date 08-10-2024 Last Date of Submission: 18-11-2024
Home Assignment 2024-25
(Introduction To Programming CAUD-501)
U.G.D.C.A Semester V
THEORY QUESTIONS:
Q1. What do you understand by Qbasic? Define the main features of Qbasic?
Q2. Why do we use followings in Qbasic?
i) CLS statement
ii) PRINT Statement
iii) REM Statement
iv) INPUT Statement
v) LET Statement
vi) END Statement
Q3. How many types of arithmetic operators are used by QBasic to perform
calculations on variables?
Q4. What is a variable in QBasic? Define how many types of variables are
available in QBasic?
Q5. What is a Flowchart? Describe each symbol of flowchart and what are the
advantages and disadvantages of flowchart?
Q6. What are the Elements of Qbasic? Explain briefly?
Q7. What is an Algorithm? What are its characteristics and what are its
advantages and disadvantages? Explain briefly?
Q8. What is a Function in Qbasic? What are the types of functions? Explain
briefly.
Q9. Explain the Branching Statements in QBasic briefly, with syntax and
examples for each:-
i) IF THEN STATEMENT
ii) IF THEN ELSE STATEMENT
iii) IF THEN ELSEIF SATEMENT
iv) SELECT CASE STATEMENT
v) GOTO STATEMENT
2
Issue Date 08-10-2024 Last Date of Submission: 18-11-2024
Q10. Explain the Looping Statement in Qbasic briefly, with syntax and
examples for each:-
i) For Next Loop Statement
ii) While Wend Loop Statement
iii) Do while Loop Statement
iv) Do until Loop Statement
PRACTICAL QUESTIONS:
Q1. Write a program to print following patterns in Qbasic:
a) 55555 b) 1 c) 10101 d) 5 e) 5 f)12345
4444 22 1010 45 44 1234
333 333 101 345 333 123
22 4444 10 2345 2222 12
1 55555 1 12345 11111 1
Q2. Write a program to print sum of 10 Even and Odd numbers using For
Next loop?
Q3. Write a program to find Square and Square root of given number?
Q4. Write a program to find Factorial of input number?
Q5. Write a program to find whether the number is a Palindrome or not?
Q6. Write a program to convert Fahrenheit to Celsius and vice-versa?
Q7. Write a program to input two numbers and perform addition, subtraction,
multiplication and division using SELECT CASE statement?
Q8. Write a program to accept any two integers and swap the values?
Q9. Write a program to print the following series up to nth terms
a) 1,2,4,8,16,32,……………….., nth term
b) 0,1,1,2,3,5,8,…………………., nth term
c) 3,12,27,48,……………………, nth term
d) 2,22,222,2222,………………., nth term
Q10. Write a program to calculate the area and perimeter of a rectangle and
print the values.