0% found this document useful (0 votes)
22 views

COMPUTER_VII_dec_assignment

Uploaded by

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

COMPUTER_VII_dec_assignment

Uploaded by

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

ST.

ALBANS SCHOOL
Sector – 15, Faridabad
Session: 2024-25
Class: VII Subject: Computer

Assignment: Ch-7(Internet and E-mail), Ch-10(Robotics)and ch-11(Algorithm and Flowchart)


Date:26.12.2024

Q1. Fill in the blanks.


a) An algorithm and a flowchart are the ___________ to write a program.
b) Processing of __________ is very important to write an algorithm.
c) Our brain __________, processes, and stores information.
d) In Python, the non-zero value is interpreted as __________.
e) ________ returns true if both the conditions are true.

Q2. State whether the following statement are ‘True’ or ‘False’. If False, write the correct answer.

a) ‘OR’ returns true, if one of the operands is true.


b) Logical operators are used to compare the value of the operands and returns True or False.
c) Script mode is a command line shell which gives immediate result for each command.
d) Information is the processed data.
e) Binary numbers can be translated into text characters using ASCII codes to store information in the
computer’s RAM or CPU.

Q3. Multiple Choice questions.


a) Which of the following is the fundamental form of the programming data?
i) Reasoning ii) Binary code
iii) Conditions iv) Data
b) Which of the following are used in a program to instruct the computer to make a decision?
i) Conditional statements ii) Algorithm
iii) Binary code iv) Flowchart
c) ASCII is made of _______ characters set.
i) 64 ii) 128
iii) 32 iv) 256
d) ________ is a string type value.
ii) 564 ii) 88.5
iii) 30% iv) ‘564’

Q4. a) Write a program to check whether a person can vote or not.


b) Write a program to check if the number is entered by the user is divisible by 7 or not.

Q5. Read the following paragraph:


Python has a simple syntax similar to the English language. Python has syntax that allows
developers to write programs with fewer lines than some other programming languages. Python
runs on an interpreter system, meaning that code can be executed as soon as it is written. This
means that prototyping can be very quick.

Based on the above case, answer the following questions:

1
a) Which is not the conditional statement in Python?
(i) If statement (ii) if-----elif-----else
(iii) looping statement (iv) nested if statement
b) Find the errors in syntax and make it corrected.
Age=20
if (Age >= 18)
print(“You can vote”)
else
print(“You cannot vote”)
c) What is the output of the code given below.
A= 20
B=30
print(a+B)
(i) A (ii) 30
(iii) error message (iv) 50

Q6. Application based questions:


a) John is writing a program to find the greatest of the three given numbers. But he is not able to find a
way to write this situation in Python because he is a beginner at programming. Which type of
statement would you suggest he use?
b) Shinaya wants to withdraw money from her saving account by an using ATM. She is thinking about
all the steps that have be followed. What would happen if ----- she had entered the wrong pin? Write
about conditions to solve this problem.

Q7. Assertion – Reasoning based question:


Direction: In the question given below, there are two statements marked as Assertion (A) and Reason
(R). Choose the correct option out of the choices given below:
Assertion (A) : We can use if, if---else and if--elif—else statements in Python.
Reason (R) : There are different types of conditional statement in Python.
a) Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
b) Both Assertion (A) and Reason (R) are true but Reason (R) is not a correct explanation of Assertion
(A).
c) Assertion (A) is true and Reason (R) is false.
d) Assertion (A) is false and Reason (R) is true.

Q8. If a = 7, b = 6, c = 9, then what will be the output of the following?


i) print(a>b or b>c)
ii) print(a+c)

You might also like