Page 203 - Computer Science V2.0 Class 11
P. 203
Objective of each function is clearly mentioned in the beginning of each function.
Comments are inserted at the proper place so as to enhance the understandability and readability of the program. (Note: Over
commenting doesn’t help)
Variables and function names are meaningful and appropriate.
Single letter variable names are not used.
Program name is meaningful.
(Note: It is not proper to use your name as program name, for example, ‘raman. py’ or ‘namya.py’ to denote your program code. It
is more appropriate to use the program name as ‘bankingProject.py’ for a banking related program or ‘admProcess’ for an admission
related program.)
Program code is properly indented.
Same naming conventions are used throughout the program.
(Note: Some of the naming conventions are firstNum, first_num, to denote the variable having first number). Let’s do this exercise for
our peer’s case studies as well and provide a feedback to them. A relevant peer feedback helps in improving the documentation of the
projects. It also helps in identifying our mistakes and enriches us with better ideas used by others.
Ans. # Program: Student Management Information System (SMIS)
# Objective: Accept and display personal details of students.
nameSchool = input("Enter Name of School:")
studentName = input("Enter the student name:")
rollNo = int(input("Enter the rollno:"))
studClass = input("Enter the class:")
section = input("Enter the section:")
addressLine1 = input("Enter the address line 1:")
addressLine2 = input("Enter the address line 2:")
city = input("Enter the city:")
pincode = input("Enter the pincode:")
contactNo = input("Enter parent's no:")
print("\t",nameSchool)
print("Student Name:",studentName,"\t \r Rollno:",rollNo)
print("Class:",studClass,"\t\t Section:",section)
print("Address Line1:",addressLine1)
print("Address Line2:",addressLine2)
print("City:",city,"\t\tPincode:",pincode)
print("Parent's/Guardian's Contact No.:",contactNo)
Answers
Multiple Choice Questions
1. (a) 2. (c) 3. (c) 4. (d) 5. (a) 6. (b) 7. (c) 8. (a)
True or False
1. (T) 2. (F) 3. (T) 4. (F) 5. (F) 6. (T) 7. (T) 8. (F) 9. (F)
10. (F)
Fill in the blanks
1. numeric/ int /float/ complex 2. complex 3. Boolean 4. first 5. relational
6. expression 7. parentheses 8. typecasting 9. debugging 10. runtime
Data Types and Operators 189

