You are on page 1of 1

Test Paper

Duration: 1 Hrs.

Note: -
1. Write your program in C++.
2. Do not use any inbuilt function of array or string.
3. Input should be given by user (do not define it in your program)
4. Array must be dynamically initialized in C++ style (using new )
5. Don’t write or mark anything on paper.

Q 1. You will first be given an integer N which is the number of strings that follows. N will range
inclusively from 1 to 16. Each line of text will have at most 256 characters, including the new-line.
Simply print the given lines top-to-bottom. The first given line should be the left-most vertical line.

Input : Input:
1 5
Hello, World! Kernel
Microcontroller
Output: Register
H Memory
e Operator
l
l Output:
o KMRMO
, eieep
rcgme
W nrior
o eosra
r lctyt
l oe o
d nr r
! t
r
o
l
l
e
r

You might also like