2nd Year Computer Chapter 9 Notes

Important Full 2nd Year Computer Chapter 9 Notes written by Professor Mr. Tayyab Shahzad. These notes are very helpful in the preparation of 2nd year computer chapter 9 important questions of 2nd year Computer Science for the students of the intermediate and these are according to the paper patterns of all Punjab boards.

Summary and Contents:
Topics which are discussed in the notes are given below:
  • Important Multiple Choice Questions of 2nd year computer chapter 9 mcqs of 2nd-year Computer Science.
  • Q1: ___is the name given to a variable, constant, function, or label in the program: 
  • (a) Keyword (b) Identifier (c) Reserved word (d) Operator
  • Q2: An identifier in C language may consist of ___character: (a) 30 (b) 31 (c) 32 (d) 33
  • Q3: How many types of identifiers are in C language? (a) 2 (b) 3 (c) 4 (d) 5
  • Q4: A type of an identifier which has a special meaning in C:
  • (a) User-defined identifier (b) Standard identifier (c) Both A & B (d) None of these
  • Q5: Printf and scanf are example of: (a) User-defined identifier (b) Standard identifier (c) Both A & B (d) None of these
  • Important 2nd year computer chapter 9 mcqs with answers for Intermediate part-II students.
  • Q6: A type of an identifier which is defined by a programmer to access memory location (s):
  • (a) User-defined identifier  (b) Standard identifier  (c) Both A & B  (d) None of these
  • Q7: Rollno , student Name and marks are examples of:
  • (a) User-defined identifier  (b) Standard identifier  (c) Both A & B  (d) None of these
  • Q8: Which of the following is NOT a valid identifier? (a) Rerutn (b) MyInt (c) MyInteger (d) Total3 
  • Q9: Total number of keywords in C is: (a) 30 (b) 32 (c) 34 (d) 36
  • Q10: Variables are created in: (a) RAM (b) ROM (c) Hard Disk (d) USB
  • Q11: Variables are created in: (a) RAM (b) ROM (c) Hard Disk (d) Cache
  • Q12: Variable and constant name cannot contains a (n): (a) Letter (b) Underscore (c) Period (d) Number
  • Important 2nd year computer chapter 9 important mcqs for Intermediate part-II students.
  • Q13: In C , the maximum length of text name is: (a) 25 Characters (b) 255 Characters (c) 155 Characters (d) 55 Characters 
  • Q14: What is the name for a word that has a specific meaning in C language? 
  • (a) Keywords (b) Commands (c) Operands (d) Operators
  • Q15: Which of the following is a keyword? (a) int (b) main (c) printf (d) include
  • Q16: A process of assigning initial value to a variable at the time of declaration is called:
  • Important 2nd year computer chapter 9 short questions for Intermediate part-II students.
  •  (a) Assigning (b) Initializing (c) Naming (d) Executing 
  • Q17: A memory location with some data that can be changed is called:
  •  (a) Constant (b) Named constant (c) Address (d) Variable
  • Important 2nd year computer chapter 9 important long questions for Intermediate part-II students.
  • What is an identifier? : Ans: In a program, the names that are used to represent variables, constants, types, functions and labels are called identifiers. We can use any number of characters as identifiers but the first 31 are significant to C compiler.
  • What is a user-defined identifier?
  • What is a standard identifier?
  • What is a keyword?
  • What is a variable?
  • What is a constant?
  • What is meant by variable declaration?
  • What is variable initialization?
  • What is meant by typed language?
  • What are the different types of constants?
  • What is meant by data type?
  • What is meant by standard data type?
  • What is meant by user-defined data type?
  • Which data types can be used to store integer data?
  • Important 2nd year computer chapter 9 long questions for Intermediate part-II students.
  • Which data types can be used to store floating-point data?
  • What is a cancellation error?
  • What is meant by underflow?
  • What is meant by overflow?
  • What is character data type?
  • How are characters stored?
  • What is an operator?
  • What are the different types of operators?
  • What is an arithmetic operator?
  • What is an assignment operator?
  • What is an assignment statement?
  • What is a compound assignment?
  • What is a compound assignment operator?
  • What is an increment operator?
  • What is a decrement operator?
  • What is meant by operator precedence?
  • What is an expression?
  • What are the comments?
  • What is a single-line comment?
  • What is a multi-line comment? 
  • What is prefix increment?
  • What is a postfix increment?
  • Important 2nd year computer chapter 9 long questions pdf download for Intermediate part-II students.
  • What is prefix decrement?Ans: If decrement operator is written before the variable name then it is called prefix decrement operator. For example --x. In this case of prefix decrement first the value of variable is decremented by one and then it is used.
  • What is postfix decrement?: Ans: If decrement operator is written after the variable name then it is called postfix decrement operator. For example x--. In this case of postfix decrement first the value of variable is used then decremented by 1. 

Loading your document...