HTC Technical-Other placement paper questions |   15518

HTC Technical-Other placement paper questions

HTC - programming questions with  answers.  HTC previously asked questions with answers

HTC placement papers programming questions HTC intrview questions

1) Write a program to compute the subsequent

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 subsequent condition

                If return books exceeds the due date

                Up to five 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 compute


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 examination

Online examination (string examination 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

every row is a separate unit

1

22

250000

2

23

260000

3

32

300000

4

30

400000

5

25

350000

Make a analysis and provide the obtain

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

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

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

Condition:

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

The age of the employee must ranging from 18-35

9) Fibbonacci series

10) Write a program to get a string and change with the mentioned string
Example provided string “dinesh” change with “rame” and display it as “ramesh”

11) Data structure(stack implementation)

12) Write a program to add the subsequent

feedback