Professional Documents
Culture Documents
Instructions:
1. You must write your full Name, Standard, Section, Date, Subject and
page number on every answer sheet.
2. Answers must be written on the answer sheets separately.
3. Send your Answer Sheets in PDF to either:
E – Mail Id: atrameshga642@gmail.com OR WhatsApp No : 9850659969
Question 1: [10]
Question 2: [10]
(a) Identify the literals listed below : (i)0.5 (ii)'A' (iii)false (iv)"a"
(c) What are the types of casting shown by the following examples?
(i) double x=15.2;
int y=(int)x;
(ii) int x=12;
long y =x:
Page 1 of 2
Section B (20 Marks)
(Attempt any two questions from this section)
Question 3: [10]
A cloth showroom has announced the following festival discounts and the assured
gifts on the purchase of items, based on the total cost of the item purchased:
Write a program to input the total cost of the item purchased, discount, amount to
be paid after availing discount and the assured gift.
Question 4: [10]
Using a switch statement, write a menu driven program for:
(i) To find sum of product of the following series:
S=1 + (1 x 2) + (1 x 2 x 3) + (1 x 2 x 3 x 4) + (1 x 2 x 3 x 4 …… x 20)
(ii) Generate and display the first 10 terms of the Fibonacci series 0,1,1,2,3,5…
The first two Fibonacci numbers are 0 and 1, and each subsequent number
is the sum of the previous two.
(iii) To print series 0, 7, 26, 63, 124 .........n terms (value of ‘n’ is to be an input by
the user)
Question 5:
An electronics shop has announced the following seasonal discount on the purchase
of certain items
Page 2 of 2