Question Paper For Complete Freshers-2
Question Paper For Complete Freshers-2
Coding (10marks)
1) Write a code to generate random numbers in C Language (2M)
2) Write a program to swap two numbers without using the third variable (C or Verilog) (2M)
3) Write a code in C language to find a number is prime palindrome number. Example for a palindrome is
(121, 1221, you will get the same number if you are reading it from left to right or right to left) (2M)
4) Get two numbers from user. If the first number is divided by the second number and if the remainder
is odd then print “Successful” but if the remainder is even then print “Done”. Write the Code in “C”
language. (2M)
5) Write any simple form of code algorithm (no restriction of language and syntaxes) which takes 2
numbers ..Divide first number with second number ..(2M)
a. Print “Multiple” if the remainder is 0.
b. Print “Odd Remainder” if the remainder is odd number.
c. Print “Even Remainder” if the remainder is prime number
Aptitude (55 M)
1) A company produces widgets at a rate of 50 per day. If they produce widgets for 20 days a month, how
many widgets will they have produced in a LEAP year 2024?(1M)
2) A container holds 3 Liters of orange juice. If you pour out 1/4 of the juice and then refill the container
with water by180% quantity of what has been poured out,(2M)
a. What is the percentage of orange juice in the container now?
b. Quantity of water filler into the container?
3) A car travels at a speed of 60 km/h for20 mins, 50 km/h for next 30mins, 30 km/h for next 40 mins,
20km/h for next 30 mins. (2M)
a. Total distance travelled
b. What is its average speed for the entire journey?
4) A person has purchased 5 shirts and 3 trousers. Cost of Shirt is 1000 and Trouser is 1500. Discount for
purchasing 2 shirts is 30% and for 3 shirt is 40%, if more than 3 the extra shirts will be discounted at
50%. Trousers are discounted 2nd trouser at 30%, 3rdtrouser 40%. If the total bill is above 5000 then
the discount is 10% on first 5000, and 5% extra thereafter for every 1000. If the bill is paid by Credit
card, card discount is 1%. (3M)
a. Gross amount before Total Price based Discounts?
b. What is the total bill paid by Credit card and
c. Total saving?
12) If the total distance of a journey is 100 km .Assume both X & Y start at same time.(10 M)
‘X’ goes by 10Kmph ‘Y’ goes at20Kmph.
If ‘X’, ‘Y’ stop for a break, they will stop fora minimum60 mins.
Both ‘X’ , ‘Y’ have to travel atleast for 1 hr, once they resume journey.
X & Y must meet (for 60 mins atleast) thrice at breaks after 3 hrs from start.
Both should reach destination at same time& as minimum time as possible.
a. What’s minimum time needed to complete journey?
b. How many breaks ‘X’ have to take (continuous breaks have to be counted as 1 only)
c. How many breaks ‘Y’ have to take (continuous breaks have to be counted as 1 only)
d. Who has done a longest journey (by time) without any breaks in b/wand how much?
e. Write a table of below format with time interval of 30 mins for throughout journey
Travel Time Dist covered / Break by ‘X’ Dist covered / Break by ‘Y’
(Hr)
0.5
1
13) A kite flying at a height of 45m from the ground level is attached to a string inclined at 60 degrees to
the horizontal. Find the length of the string ?(1 M)
14) Pipe ‘W’ can fill a tank 4 times as fast as another pipe ‘X’. Pipe ‘X’ can fill a tank 3 times as fast as
another pipe ‘Y’. Pipe ‘Y’ can fille a tank 2 times as fast as another pipe ‘Z’.If together all 4 pipes can
fill the tank in 1230 minutes, then (8 M)
a. Single Pipe ‘W’ can fill it in
b. Single Pipe ‘X’ can fill it in
c. Single Pipe ‘Y’ can fill it in
d. Single Pipe ‘Z’ can fill it in
15) In an apartment, escalator is not working. Men started taking stairs from Ground Floor. He took 1 min
to take first stair. From there, his speed decreased by half for every floor. (hint: write a small table for
every floor and time taken for each).(2 M)
th
a. How much time he takes to reach 10 floor.
19) A number consists of two digits. The digit at the one’s place is two times the digit at the ten’s place.
The number formed by reversing the digits is 75%more than the original number. Then the original
number is ?(1 M)
20) Consider a room of size 12 ft x 14 ft. Given tiles of size 2ft x 2ft of 20 in number. Tile to Tile spacing
must be 1ft .. Tile to Wall spacing must be 1 ft .. How many tiles are needed to fit the room. ?(3 M)
Digital design
1) Consider the equation (123)5 = (x8)y with x and y as unknown. And values of x & y are ??(1 M)
2) Convert (21069)10 into base-36 number system _________________(2 M)
a. Where first 10 digits are denoted by 0-9 . Next 26 are denoted by A-Z
3) Convert (12345)9 into base-62 number system _________________(3 M)
a. Where first 10 digits are denoted by 0-9 . Next 26 are denoted by A-Z . Next 26 are denoted by a-z.
4) The Octal number for Hexa Decimal NumberAB5E is ________.(2 M)
5) If x and y are two decimal digits and (0.1111)2 = (0.wxyz)10, the decimal value of w+x+y+z is ?(2 M)
6) Given √224𝑟 = 13r the value of radix r is?(2 M)
7) Given √144𝑟 = 12r, how may possible integer values r can have, provided 0 <= r<= 1000.(2 M)
8) Design a Finite state machine to detect a sequence 1011.(1 M)
9) Design an infinite state machine to detect a sequence 101.(1 M)
10) Design a 4-bit circuit where it will be high when it gets a prime number. Truth table, simplified circuit(1 M)
11) Draw the S ck diagram for the equa on Y = AB(1 M)
12) Simplify the following expression using Boolean algebra rules. Draw the waveforms for the output. Construct
the circuit for the simplified expression with the min delay. (1 M)
i. AND = 4ns OR = 2ns NOT =2ns NAND = 1ns NOR = 1ns OTHER GATE = 3ns
ii. Z = ABC + ABC + ABC + ABC + ABC
13) Draw the circuit and waveforms with the delays as 2ns for each gate. Try to achieve the smallest delay
possible.
i. T = A (B + BC )(1 M)
14) F(A, B, C) = Σm(0, 1, 6, 7) + Σd(3, 5)
5)(1 M)
i) Minimize the following boolean function using Kmap?
ii) Draw the waveform with the simplified expression considering the gate delays as
NOT = 1ns , AND = 2ns , OR =3ns
15) Draw truth tables for the below Boolean expression:
F(A , B , C) = A (B + AC + A’)(1 M)
16) Convert the following logic gate circuit into a Boolean expression, writing Boolean sub--expressions
next to each gate output in the diagram:(1
diagram: M)
Verilog
1. What will be displayed? A) 1010 B) 0101 C) 1101 D) 1111
module example;
reg [3:0] a;
initial begin
a = 4'b1010;
#5 a = ~a;
#5 $display("Value of a: %b", a);
end
endmodule
A) 1010 B) 0101 C) 1101 D) 1111
2. What will be displayed?
module test;
reg [3:0] x;
initial begin
x = 4'b1100;
#5 x = x >> 1;
#5 $display("Value of x: %b", x);
end
endmodule
Coordinate Geometry
1. Find the euclidean distance and Manhattan distance between the Points A(15, 4) and B(
B(-5, 13)?