0% found this document useful (0 votes)
13 views4 pages

Document 5

The document outlines important exam questions related to coding, programming languages, algorithms, flowcharts, and variables. It provides definitions, examples, and algorithms for calculating profit or loss, as well as the benefits of using flowcharts. Additionally, it discusses different types of variables and logical operators.

Uploaded by

shreemayee.panda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Document 5

The document outlines important exam questions related to coding, programming languages, algorithms, flowcharts, and variables. It provides definitions, examples, and algorithms for calculating profit or loss, as well as the benefits of using flowcharts. Additionally, it discusses different types of variables and logical operators.

Uploaded by

shreemayee.panda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Important Questions for Exam

1. What is coding?
2. What is a programming language? Give an example.
3. What is algorithm? Find the algorithm of sum of 2 numbers.
4. Calculate profit or loss using algorithm.
5. What is a flowchart? Write symbol
6. Prepare flowchart, calculate profit or loss.
7. Benefit of using flowchart.
8. Different types of variables with examples.
9. Draw the table of relational operators.
10. Write the name of logical operator and give examples.

Answers
1. Coding is the process of writing instructions in a programming language
to create software, applications, or systems that computers can
execute. It involves translating human ideas into a language that
computers understand.
2. A programming language is a formal set of instructions and rules used to
communicate with a computer and develop programs. It provides syntax and
structure for coding. Example: Python, Java, C++, etc.
3. An algorithm is a step-by-step procedure or formula for solving a problem or
performing a task. It is a logical sequence of actions to achieve a specific goal.
Algorithm to find the sum of two numbers:
Start
Input two numbers (A and B)
Add the numbers: Sum = A + B
Output the Sum
Stop

4. Algorithm:
Start
Input Cost Price (CP) and Selling Price (SP)
If SP > CP, calculate Profit = SP - CP
If CP > SP, calculate Loss = CP - SP
Output Profit or Loss
Stop

5.

6. Steps for flowchart:


Start
Input CP and SP
Decision (Is SP > CP?)
a. If Yes: Calculate Profit = SP - CP, then Output Profit
b. If No: Calculate Loss = CP - SP, then Output Loss
Stop

7. Clarity: Makes the logic of a process clear.


Problem-solving: Simplifies understanding and debugging.
Communication: Helps communicate ideas to team members.
Documentation: Useful for maintaining and updating systems.

8. Integer (int): Stores whole numbers.


Example: int age = 25;
Float (float): Stores decimal numbers.
Example: float price = 99.99;
Character (char): Stores a single character.
Example: char grade = 'A';
String (string): Stores sequences of characters.
Example: string name = "Alice";
Boolean (bool): Stores true or false values.
Example: bool is Happy = true;

9.

10.

You might also like