HTC global Services |   9160

HTC global Services

 

Technical Questions

1) Write a program to calculate the following

1+4+9+16+….+100

Like this (1^2+2^2)

Hint use function pow(a,b)

2) In a college library fines are issued according to the following condition

                If return books exceeds the due date

                Up to 5 days 20rs fine

                6-10 days 50rs fine

                >10 days 100rs fine

                More than 30 days membership will be cancelled

Get the  due date from the user and calculate

3) Get a n0. From user and display it’s prime factor

Example 24 is 2,2,2,3 and 55 is 5,11

4) Write a function to get a string and reverse it and display the string

5) A function to book online exam

Online exam (string exam name, int feespaid, string location)

Ocp

5000

Scjp

5500

Linux

10000

Jcp

6000

Location Chennai, Bangalore

Write a fn. To get those details and verify it and display a registration ID

6) Write any data structure program (stack implementation)
 
 
7) A financial company have the data’s in the database

1st column no.

2nd column no. of employees

3rd column annual turn over

Each row is a separate unit

1

22

250000

2

23

260000

3

32

300000

4

30

400000

5

25

350000

Make a analysis and give the find

      1) In which unit u have to improve the turn over

      2) Where we can add a employee in any one of the unit

8) Erite a program to get the user name and age

Condition:

The name should be more than six characters  and it shouldn’t contain any other characters than alphabet(like !,@,#,$,^,& these are not to be present)

The age of the employee must between 18-35

9) Fibbonacci series

10) Write a program to get a string and replace with the mentioned string

Example given string “dinesh” replace with “rame” and display it as “ramesh”

11) Data structure(stack implementation)

12) Write a program to add the following

¼+2/4+3/4+5/3+6/3+...

(Like up to any 12 no.s)

 

 

feedback