Computer Class 7
Computer Class 7
1: c 2: b c: c 4: c 5: d 6: c 7: d 8: a 9: b 10: a
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
Searching algorithms are used to look for and retrieve the elements
Ans:
used in any data structure from that data structure itself.
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.
Synthesis becomes effectual Difficult to understand for people who don't know flowchart symbols
Q#11: Draw a flow chart to add three numbers and print the sum
Q#12: Draw a flow chart to find whether the given number is even or odd.
Unit#4: Programming
1.b 2. c 3. a 4. d 5. a 6. d 7. c 8. a 9. d 10. d
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
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.