# Tutor profile: Navjot S.

## Questions

### Subject: Perl Programming

Write Perl program and display elements of an array?

#!/usr/bin/perl @ages = (25, 30, 40); @names = ("John Paul", "Lisa", "Kumar"); print "\$ages[0] = $ages[0]\n"; print "\$ages[1] = $ages[1]\n"; print "\$ages[2] = $ages[2]\n"; print "\$names[0] = $names[0]\n"; print "\$names[1] = $names[1]\n"; print "\$names[2] = $names[2]\n"; Output:- $ages[0] = 25 $ages[1] = 30 $ages[2] = 40 $names[0] = John Paul $names[1] = Lisa $names[2] = Kumar

### Subject: Computer Science (General)

Explain all the components of Computer System and their functionality?

WIll explain all the components of Computer and how they work together:- The Central Processing Unit: (CPU), Buses, Ports and controllers, ROM; Main Memory (RAM); Input Devices; Output Devices; Secondary Storage; floppy disks, hard disk, CD-ROM

### Subject: Algebra

If y = 2, then y^3(y^2-y)=??

y^3(y^2-y) y^(3+2) - y^(3+1) [formula-> a^m x a^n = a^(m+n)] y^5 - y^4 Substitute y=2, 2^5 - 2^4 32 - 16 Answer= 16 Way 2-> y^3(y^2-y) y^3 x y (y - 1) y^(3+1)(2-1) {substituting y=2} 2^4 x 1 Ans= 16

## Contact tutor

needs and Navjot will reply soon.