CBSE Class 11 Compter Science Conditional Operator

Scroll down for PDF

CBSE Class 11 Compter Science Conditional Operator. Students are advised to refer to the attached assignments and practice them regularly. This will help them to identify their weak areas and will help them to score better in examination. Parents should download and give the assignments to their children for practice.


1. Write a program to input a number. If it is even, double and print the number otherwise print its half.

2. Write a program to input a character. Print whether it is an alphabet or not using conditional operator.

3. Write a program to input co-efficients of a, b and c of a quadratic equation ax2 + bx + c = 0 ,where a = 0. Discriminant, D = b2- 4ac.If discriminant is 0 then print there is exactly one real root, if discriminant is positive then print there are two distinct roots, if discriminant is negative then print then there are no real roots.

4. Write a program to input income of a person. Calculate tax using following criteria. If income is more than 20000, tax is 15%. Else if income is in the range 5000-20000, tax is 10%. If income is less than 5000, tax is nil.

5. Write program to input three numbers. Print the largest of the three.

Please click the link below to download CBSE Class 11 Compter Science Conditional Operator


Click on the text For more study material for Computer Science please click here - Computer Science

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

TIPS: Study habits for success

Being a student is fairly a difficult job. Alongside maintaining your curricular as well as extra-curricular activities adds more to it. Performance in academics is one of the major concerns. Every parent now tries to get their children more indulged in studies. Need...

JEE Entrance Exam 2020 Dates Registration Admit Cards Exam Pattern

JEE Entrance exam is conducted for students who wish to pursue engineering in different subjects or categories like mechanical, CS, etc.. It is officially organized and conducted by NTA. Formerly it was organized by CBSE. It avails seats for students in IITs, NITs, and...

Guidelines On Reducing Weight Of School Bags

GUIDELINES ON REDUCING WEIGHT OF SCHOOL BAGS In this competitive world, where students are giving their best, an unnoticed threat rides on our back. Heavy School Bags are a serious yet unresolved threat to the health and wellbeing of the young ones. The medium of their...

CBSE Board Introduces Experiential Learning for Student

CBSE Academic Session 2019-20: Board Introduces Experiential Learning for Student: The education sector has grown for some new changes. As per the latest updates the Central Board of Secondary Education has been good in making all the possible efforts to improve...

Requirements for admissions in CBSE affiliated Schools

CBSE gives an advanced form of education. They try to indulge students in interactions and teach application based subjects along with some others. Due to this preponderance of parents, they tend to admit their children in CBSE affiliated schools. General conditions...

NCERT NTSE Admit Card 2020 released - know more

Introduction: NTSE 2020 National Talent search examination is conducted by NCERT to take out the students who excel in science. It is organized to measure and let the students with talent outshine in their coming future. This talent search exam is taken in 2 stages....

Studies Today