Here is the CBSE Class 11 Information Practices Introduction To Programming Worksheet for your practice. Download printable Class 11 Informatics Practices worksheets covering Introduction To Programming for the 2026-27 academic session. Created by experienced educators, these sheets follow official testing patterns from NCERT, CBSE, and KVS to help students succeed.
Worksheet Collection: Class 11 Informatics Practices Introduction To Programming
Every student in Class 11 can use this Informatics Practices practice paper to review Introduction To Programming. Complete with important questions and solutions, regular self-testing will boost your confidence and improve your grades in school assessments and final tests.
Introduction To Programming Questions & Answers for Class 11 Informatics Practices
CBSE Class 11 Information Practices - Introduction to Programming. Students can download these worksheets and practice them. This will help them to get better marks in examinations. Also refer to other worksheets for the same chapter and other subjects too. Use them for better understanding of the subjects.
1. Create a GUI application that asks for TWO integers from user and display the result as shown in the screen shot.
Add a new frame to the project.
Design the frame having controls arranged as shown above.
(3 Labels, 3 Text boxes, 3 Command buttons).
Set the names and Settings of the above controls as shown in the table below:
Control
Name
Property/Setting
TextField1
num1
Make it blank, Tahoma 12 Bold
TextField2
num2
Make it blank, Tahoma 12 Bold
TextField3
num3
Result, Deactivate, Tahoma 12 Bold
Label1
Enter first number, Tahoma 12 Bold
Lablel2
Enter second number, Tahoma 12 Bold
Label3
Answer, Tahoma 12 Bold
Button1
sum
Tahoma 12 Bold
Button2
product
Tahoma 12 Bold
Button3
diff
Tahoma 12 Bold
Double click on “Sum” button and type the following code :
int a= Integer.parseInt(num1.getText());
int b= Integer.parseInt(num2.getText());
int c=a+b;
num3.setText(c+"");
Save you work. Press Shift +F6/ Run to the see the output.
Complete the coding for Product and Difference.
PORTIONS FOR FIRST ASSESMENT- (2016)
SUBJECT: INFORMATICS PRACTICES(CODE:065)
Sl.No
Chapter Name
MARKS
1
Introduction To Programming
Chapter-3 Getting Started With Programming Using IDE
Chapter-4 Programming Fundamentals
Chapter-5 Flow Of Control
35
2
Relational Database Management Systems
Chapter-10 DBMS Concepts
Chapter-11 Introduction To MySQLl
Chapter-12 Simple Queries In SQL
Chapter-13 MySQL Functions
Chapter-14 Table Creation And Data Manipulation Commands
35
TOTAL
70
Question 1. Create a GUI application that asks for TWO integers from user and display the result as shown in the screen shot.
• Add a new frame to the project.
• Design the frame having controls arranged as shown above. (3 Labels, 3 Text boxes, 3 Command buttons).
• Set the names and Settings of the above controls as shown in the table below:
| Control | Name | Property/Setting |
|---|---|---|
| TextField1 | num1 | Make it blank, Tahoma 12 Bold |
| TextField2 | num2 | Make it blank, Tahoma 12 Bold |
| TextField3 | num3 | Result, Deactivate, Tahoma 12 Bold |
| Label1 | Enter first number, Tahoma 12 Bold | |
| Label2 | Enter second number, Tahoma 12 Bold | |
| Label3 | Answer, Tahoma 12 Bold | |
| Button1 | sum | Tahoma 12 Bold |
| Button2 | product | Tahoma 12 Bold |
| Button3 | diff | Tahoma 12 Bold |
• Double click on "Sum" button and type the following code:int a= Integer.parseInt(num1.getText());
int b= Integer.parseInt(num2.getText());
int c=a+b;
num3.setText(c+"");
• Save your work. Press Shift + F6/ Run to see the output.
• Complete the coding for Product and Difference.
Answer:
To complete the calculations, we write the Java event handling code for both the Product and Difference buttons.
Code for the "Product" button:int num1Value = Integer.parseInt(num1.getText());
int num2Value = Integer.parseInt(num2.getText());
int productResult = num1Value * num2Value;
num3.setText("" + productResult);
Code for the "Difference" button:int valueA = Integer.parseInt(num1.getText());
int valueB = Integer.parseInt(num2.getText());
int subtractionResult = valueA - valueB;
num3.setText(String.valueOf(subtractionResult));
In simple words: First, read the text from the fields num1 and num2, convert those text values into integer numbers, calculate the multiplication or subtraction, and display the result inside the third text field num3.
Exam Tip: Always make sure to use `Integer.parseInt()` to parse string text into numerical data types before attempting any mathematical calculations in Java Swing applications.
Complete List of Java Keywords
| abstract | boolean | break | byte | case | catch |
| char | class | const | continue | default | do |
| double | else | extends | final | finally | float |
| for | goto | if | implements | import | instanceof |
| int | interface | long | native | new | package |
| private | protected | public | return | short | static |
| strictfp | super | switch | synchronized | this | throw |
| throws | transient | try | void | volatile | while |
| assert |
Portions for First Assessment - (2016)
Subject: Informatics Practices (Code: 065)
| Sl.No | Chapter Name | Marks |
|---|---|---|
| 1 | Introduction To Programming Chapter-3 Getting Started With Programming Using IDE Chapter-4 Programming Fundamentals Chapter-5 Flow Of Control | 35 |
| 2 | Relational Database Management Systems Chapter-10 DBMS Concepts Chapter-11 Introduction To MySQL Chapter-12 Simple Queries In SQL Chapter-13 MySQL Functions Chapter-14 Table Creation And Data Manipulation Commands | 35 |
| TOTAL | 70 | |
Free CBSE Printable Worksheets: Class 11 Informatics Practices
Practice Exercises for Class 11 Informatics Practices
Enhance your test readiness by practicing the targeted questions provided for Introduction To Programming. Authored by experienced teachers in compliance with the recent 2026 CBSE guidelines for Class 11, these resources encourage active learning. We advise Class 11 students to complete these exercises regularly to reinforce core principles in Informatics Practices.
Step-by-Step Solutions for Class 11 Informatics Practices
These exercises draw directly from the authorized NCERT book for Class 11 Informatics Practices to maintain academic accuracy. Evaluating your finished work against our expert solutions helps you master the formal answer-writing standards expected in CBSE exams. Explore the accompanying MCQ sets for Informatics Practices to ensure full preparation across all chapter concepts.
Boosting Grades with Free Informatics Practices Resources
Practicing this Class 11 Informatics Practices content routinely exposes you to frequently tested question patterns. If specific areas within Introduction To Programming cause trouble, utilize our dedicated NCERT solutions for Class 11 Informatics Practices to clear up doubts. Explore our full library of free, up-to-date printable assignments on our portal to maximize your academic results in school tests.
FAQs
You can download the latest chapter-wise printable worksheets for Class 11 Informatics Practices Introduction To Programming for free from StudiesToday.com. These have been made as per the latest CBSE curriculum for this academic year.
Yes, Class 11 Informatics Practices worksheets for Introduction To Programming focus on activity-based learning and also competency-style questions. This helps students to apply theoretical knowledge to practical scenarios.
Yes, we have provided solved worksheets for Class 11 Informatics Practices Introduction To Programming to help students verify their answers instantly.
Yes, our Class 11 Informatics Practices test sheets are mobile-friendly PDFs and can be printed by teachers for classroom.
For Introduction To Programming, regular practice with our worksheets will improve question-handling speed and help students understand all technical terms and diagrams.