Skip to content
Related Articles

Related Articles

NPAV (Net Protector Antivirus) Interview Experience | On-Campus 2021

Improve Article
Save Article
  • Difficulty Level : Hard
  • Last Updated : 04 Feb, 2021
Improve Article
Save Article

NPAV generally conducts on-campus pen and paper tests as the first round. All questions were to be solved using C/C++ only. The total time allotted was 1 hr.

Following were the questions asked:

  1. Given an input number, print the smallest digit (10marks)

    E.g. 

    Input: 519
    Output: 1
  2. Print the given number into words(10 marks)

  3. Take 16 digit input from the user and print: 

    • Sum of first and last digit in the sequence

    • Multiplication of every 2nd and 3rd digit in the sequence (10marks)

      E.g.

      Input: 1 2 3 4     5 6 7 8    9 10 11 12   13 14 15 16
      Sum = 5 (1+4), Multiplication = 6 (2*3)
      Sum = 13, Multiplication = 42
      Sum = 21, Multiplication = 110
      Sum = 29, Multiplication = 210
  4. Take input from the user as name and birthplace and output is as follows: (10marks)

    Input:  

    Name Birthplace
    Sunil Mumbai
    Anil Pune
    Asha Ahmednagar
    Rohan Pune
    Rohit Mumbai
    Rajesh Pune

    Output: 

    Birthplace Count Name
    Mumbai  2 Sunil Rohit  
    Pune  3 Anil Rohan Rajesh
    Ahmednagar  1 Asha    
  5. Given the marks for 10 students for Physics, Chemistry, and Mathematics, calculate the average and find the second highest and the second-lowest average score (10marks)

    Input: 

      Physics Chemistry Maths Average
    Student1 89 85 91 88
    Student2 45 56 80 60
    Student3 80 95 68 81
    Student4 72 81 65 72
    Student5 63 65 75 67
    Student6 72 82 92 82
    Student7 36 75 56 55
    Student8 66 76 56 66
    Student9 90 89 91 90
    Student10 88 86 81 85

    Output: 

    2nd highest average = 88
    2nd lowest average = 60
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!