Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

VU Past Papers CS201-Most Importants MCQs on Employee Salary Calculation, in C++”

Q#1: What is the main focus of the problem discussed in the paragraph?
a) Designing tax brackets
b) Calculating net salaries of employees
c) Identifying unlucky individuals in terms of take-home salary
d) Analyzing company ‘C’ employment structure
Answer: c) Identifying unlucky individuals in terms of take-home salary

Q#2: According to the tax deduction law mentioned, what is the tax rate for individuals with salaries ranging from Rs. 5,001 to Rs. 10,000 per month?
a) 0%
b) 2%
c) 5%
d) 10%
Answer: b) 2%

Q#3: What is the criteria for being an “unlucky individual” in this context?
a) Having a higher gross salary than colleagues
b) Having a lower gross salary and higher tax rate
c) Having a higher net salary than colleagues
d) Having a lower net salary and lower tax rate
Answer: b) Having a lower gross salary and higher tax rate

Q#4: According to the design recipe, what is the first step in the process?
a) Implementation
b) Analysis
c) Design
d) Testing
Answer: b) Analysis

Q#5: In the design phase, what does the program aim to achieve?
a) Compile and run the code
b) Break up the problem into functional units
c) Determine the tax rates
d) Write a precise problem statement
Answer: b) Break up the problem into functional units

Q#6: What type of array is used to store the gross and net salaries of employees?
a) Single-dimensional array
b) Two-dimensional array
c) Dynamic array
d) Linked list
Answer: b) Two-dimensional array

Q#7: How is the list of unlucky employees stored in the program?
a) Single-dimensional array of ‘char’ type
b) Two-dimensional array of ‘int’ type
c) Dynamic array of ‘double’ type
d) Linked list of ‘float’ type
Answer: b) Two-dimensional array of ‘int’ type

Q#8: What is the maximum number of employees considered in the program?
a) 50
b) 75
c) 100
d) It is not specified
Answer: d) It is not specified

Q#9: In the main program, what are the four major parts the program is divided into?
a) Input, Output, Tax Calculation, Display
b) Get input, Calculate salary, Locate unlucky individuals, Display output
c) Salary calculation, Identify unlucky individuals, Input, Output
d) Get input, Display output, Tax calculation, Salary calculation
Answer: b) Get input, Calculate salary, Locate unlucky individuals, Display output

Q#10: What is the purpose of the constant variable ‘arraySize’ in the program?
a) To store the tax rates
b) To declare the size of the two-dimensional array
c) To indicate the number of employees
d) To determine the net salary
Answer: b) To declare the size of the two-dimensional array

Q#11: What is the significance of the ‘lucky’ array initialized with zeroes?
a) It stores the gross salaries
b) It represents the unlucky individuals
c) It indicates the tax deduction rates
d) It is a placeholder for net salaries
Answer: b) It represents the unlucky individuals

Q#12: What happens if the ‘numEmps’ variable is declared inside the ‘input data’ function?
a) It becomes a global variable
b) It is accessible in all functions
c) It is local to the ‘input data’ function
d) It retains its value after the function returns
Answer: c) It is local to the ‘input data’ function

Q#13: How is the ‘numEmps’ variable passed to the ‘input data’ function?
a) Call by value
b) Call by reference
c) Global variable
d) Static variable
Answer: b) Call by reference

Q#14: What is the primary purpose of the ‘calcNetSal’ function in the program?
a) Display the net salaries
b) Calculate the tax rates
c) Identify unlucky individuals
d) Calculate the net salaries of employees
Answer: d) Calculate the net salaries of employees

Q#15: According to the source code, what is the purpose of the ‘printUnluckies’ function?
a) Print the gross salaries
b) Print the tax deduction rates
c) Print the list of unlucky employees
d) Print the net salaries
Answer: c) Print the list of unlucky employees

Q#16: What is the primary role of the ‘findUnluckies’ function in the program?
a) Calculate net salaries
b) Locate unlucky employees
c) Determine tax rates
d) Display output
Answer: b) Locate unlucky employees

Q#17: How are arrays passed to functions in C++ by default?
a) Call by reference
b) Call by value
c) Global variable
d) Static variable
Answer: a) Call by reference

Q#18: According to the tax deduction law, what is the tax rate for persons with salaries ranging from Rs. 20,001 and higher?
a) 0%
b) 5%
c) 10%
d) 15%
Answer: d) 15%

Q#19: What is the purpose of the ‘lucky’ array in the program?
a) To store gross salaries
b) To store net salaries
c) To indicate lucky individuals
d) To determine the tax rates
Answer: c) To indicate lucky individuals

Q#20: What is the primary focus of the design recipe in the context of the given problem?
a) Tax calculation
b) Net salary determination
c) Rigorous design process
d) Implementation details
Answer: c) Rigorous design process

Contents Copyrights Reserved By T4Tutorials