Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
130 views

Computer Class 7

The document discusses computational thinking and provides examples of computational thinking techniques such as decomposition. It also discusses algorithms, their characteristics, and provides examples of sorting and searching algorithms. Additionally, it discusses binary and decimal number systems and how computers convert between them. It provides examples of representing text, images, and sound in binary code.

Uploaded by

Arslan Ajmal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
130 views

Computer Class 7

The document discusses computational thinking and provides examples of computational thinking techniques such as decomposition. It also discusses algorithms, their characteristics, and provides examples of sorting and searching algorithms. Additionally, it discusses binary and decimal number systems and how computers convert between them. It provides examples of representing text, images, and sound in binary code.

Uploaded by

Arslan Ajmal
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Computer Class: Seven

Unit#3: Computational thinking

Tick the correct option;

1: c 2: b c: c 4: c 5: d 6: c 7: d 8: a 9: b 10: a

Fill in the blanks;

1. No steps executed by the solution to solve the problem


2. Memory consumed by the solution.
3. Breaking a task or problem into steps or parts is known as Decomposition.
4. A infinite loops, have not an explicit end. It runs on an infinite time because condition is not false in any
iteration.
5. The input to be taken to solve the problem.

Q#1. Define computational thinking in your words.

Ans: Computational thinking: Computational thinking is defined as the process of


identifying a clear, defined, step-by-step solution to a complex problem.
Q#2: Enlist techniques of computational thinking.
Ans: There are four key skills in computational thinking. These are decomposition, pattern
recognition, pattern abstraction and algorithm design.
Q#3: What do you mean by Decomposition?
Ans: Decomposition is one of the four cornerstones of Computer Science. It
involves breaking down a complex problem or system into smaller parts that are more
manageable and easier to understand. The smaller parts can then be examined and solved,
or designed individually, as they are simpler to work with.
Q#4: Elaborate Algorithm in your words
Ans: An algorithm is a procedure used for solving a problem or performing a computation.
Algorithms act as an exact list of instructions that conduct specified actions step by step in
either hardware- or software-based routines. Algorithms are widely used throughout all
areas of IT.
Q#6: Enlist the Characteristics of an algorithm

 Ans: input: An algorithm requires some input values. An algorithm can be given a value other
than 0 as input.

 Output: At the end of an algorithm, you will have one or more outcomes.

 Unambiguity: A perfect algorithm is defined as unambiguous, which means that its instructions
should be clear and straightforward.

 Finiteness: An algorithm must be finite. Finiteness in this context means that the algorithm
should have a limited number of instructions, i.e., the instructions should be countable.

 Effectiveness: Because each instruction in an algorithm affects the overall process, it should be
adequate.
 Language independence: An algorithm must be language-independent, which means that its
instructions can be implemented in any language and produce the same results.

Q#7: Omitted

Q#8:Differentiate between searching and sorting algorithm.

Searching algorithms are used to look for and retrieve the elements
Ans:
used in any data structure from that data structure itself.

Sorting algorithms helps arrange a list of data or an array of data into a


particular order

Q#9: What are loops?Discuss its types

Ans: A Loop is used to repeat a specific block of code a over and over. There are two main
types of loops, finite loops and infinite loops.

Q#10: Enlist advantages and disadvanatages of flowcharts.


Ans:

Advantages of flowchart Disadvantages of flowchart

Analysis becomes effective It's a time-consuming process

Synthesis becomes effectual Difficult to understand for people who don't know flowchart symbols

Debugging becomes possible No man to computer communication.

Q#11: Draw a flow chart to add three numbers and print the sum

Ans: from page num 50 Example #2 draw on copy

Q#12: Draw a flow chart to find whether the given number is even or odd.

Ans: from page num 51 Example #3 draw on copy.

Unit#4: Programming

Tick the correct answer;

1.b 2. c 3. a 4. d 5. a 6. d 7. c 8. a 9. d 10. d

Q#1: What is binary number system in computer with example

Ans: A binary number system is one of the four types of number system. In computer
applications, where binary numbers are represented by only two symbols or digits, i.e. 0
(zero) and 1(one). The binary numbers here are expressed in the base-2 numeral system.
For example, (101)2 is a binary number.
Q#2: Differentiate between binary and decimal number systems.

Ans: Binary System:The number system that represents a number in terms of 0 to 9 digits
is a decimal number system. A binary system has only two digits, i.e., 0 and 1.

Decimal Number System: A decimal number system has ten digits, i.e., 0, 1, 2, 3, 4, 5, 6, 7,
8, and 9. The base of a number in this system is 2

Q#3: How does computer convert binary numbers into decimals?

Ans: Conversion using doubling is one of the simplest ways for converting binary numbers
into decimal numbers. We need to take the most signification bit or leftmost digit of the
number. Then multiply the digit by 2 and add the second leftmost bit and store the result.

Q#4: How does the computer convert decimal numbers into binary numbers?

Ans: The computer stores all data as binary. It does not convert from decimal to binary
since binary is its native language. When the computer displays a number it will convert
from the binary representation to any base, which by default is decimal.

Q#5: Write a note explaining the conversion of text, image and sound representation in
binary code.

Ans: Therefore, in order for a computer to be able to process any kind of data, including
text, images and sound, they must be converted into binary form. If the data is not
converted into binary – a series of 1s and 0s – the computer will simply not understand it or
be able to process it.

You might also like