SlideShare a Scribd company logo
Page 1 of 10
Section A – 25 Questions (25 Marks)
Multiple Choice Questions, No Negative Marking, No Partial Marking.
1 Mark for each correct answer
1. Which of the following numbers doesn’t fit the below series.
343, 512, 729, 1000, 1329
a. 512
b. 343
c. 1329
d. 729
2. If in a certain language PROSE is coded as PPOQE, how is LIGHT coded in that code ?
a. LIGFT
b. LGGFT
c. LGGHT
d. LLGFE
3. Raghu tosses a coin 6 times. The probability that the number of times he gets heads will
not be greater than the number of times he gets tails is.
a. 21/64
b. 3/32
c. 41/64
d. 21/32
4. If Praveen and Naveen together can complete a piece of work in 15 days and Naveen
alone in 20 days, in how many days can Praveen alone complete the work?
a. 60
b. 45
c. 40
d. 30
5. A boat running upstream takes 8 hours 48 minutes to cover a certain distance, while it
takes 4 hours to cover the same distance running downstream. What is the ratio
between the speed of the boat and speed of the water current respectively?
a. 2:1
Page 2 of 10
b. 3:2
c. 8:3
d. Cannot be determined
6. Abhi and Vabby take part in a 100 m race. Abhi runs at 5 kmph. Abhi gives Vabby a start
of 8 m (meaning Abhi starts the race when Vabby has already covered 8m) and still
beats him by 8 seconds. The speed of Vabby is:
a. 5.15 kmph
b. 4.14 kmph
c. 4.25 kmph
d. 4.4 kmph
7. A bag contains 2 red, 3 green and 2 blue balls. Two balls are drawn at random. What is
the probability that none of the balls drawn is blue?
a. 10 / 21
b. 11 / 21
c. 5 / 7
d. 2 / 7
8. There is a 60% increase in an amount in 6 years at simple interest. What will be the
compound interest for Rs. 12,000 after 3 years (compounded annually) at the same
rate?
a. 2160
b. 3120
c. 3972
d. 6240
9. The average temperature for Wednesday, Thursday and Friday was 40 degrees celsius.
The average for Thursday, Friday and Saturday was 41 degrees celsius. If the
temperature on Saturday was 42 degree celsius, what was the temperature on
Wednesday?
a. 39
b. 44
c. 38
d. 41
10. A father said to his son, "I was as old as you are at the present at the time of your
birth". If the father's age is 38 years now, the son's age 4 years back was:
a. 34
b. 23
c. 15
Page 3 of 10
d. 19
11. The sum of the first 16 terms of an AP whose first term and third term are 5 and 15
respectively is ?
a. 600
b. 765
c. 640
d. 680
12. . There are two poles, one on each side of the road. The higher pole is 54 m high. From
the top of this pole, the angle of depression of the top and bottom of the shorter pole is
30 and 60 degrees respectively. Find the height of the shorter pole. Use the below
references of the trigonometric table and angle of depression definition.
a. 40m
b. 24m
c. 36m
d. Cannot be determined
13. The difference between a two-digit number and the number obtained by interchanging
the positions of its digits is 36. What is the difference between the two digits of that
number?
a. 3
b. 4
c. 9
d. Cannot be determined
Page 4 of 10
14. What does f1(8) return for this function.
int f1 (int n)
{
if(n == 0 || n == 1)
return n;
else
return (2*f1(n-1) + 3*f1(n-2));
}
a. 1661
b. 59
c. 1640
d. 73
15. What is the output of the below program ?
int main()
{
int a=14;
while(a<20)
{
++a;
if(a>=16 && a<=18)
{
continue;
}
printf("%d ", a);
}
return 0;
}
a. 15 16 17 18 19
b. 15 18 19
c. 15 16 20
d. 15 19 20
16. What does the following program print?
int main ()
{
Page 5 of 10
int i, j;
int a [8] = {1, 2, 3, 4, 5, 6, 7, 8};
for(i = 0; i < 3; i++) {
a[i] = a[i] + 1;
i++;
}
i--;
for (j = 7; j > 4; j--) {
int i = j/2;
a[i] = a[i] - 1;
}
printf ("%d, %d", i, a[i]);
}
a. 2, 3
b. 2, 4
c. 3, 2
d. 3, 3
17. What’s the output of the following program?. Consider int is allocated 2 bytes of
memory in the system.
int main()
{
int a = 5, b = 9, c;
c = a ^ b // ^ means XOR operator
c = c << 2 // << Left shift operator
printf(“%d”, c);
return 0;
}
a. 0
b. 14
c. 48
d. 144
18. Which one of the following is not true?
a. Kernel is the program that constitutes the central core of the operating system
b. Kernel is the first part of operating system to load into memory during booting
Page 6 of 10
c. Kernel is made of various modules which cannot be loaded in the running operating
system.
d. Kernel remains in the memory during the entire computer session
19. In operating systems, an asynchronous call __________________________
a. returns immediately, without waiting for the I/O to complete
b. does not return immediately and waits for the I/O to complete
c. consumes a lot of time
d. is too slow
20. Which of the following is not true about Recursion
a. Program languages internally use the stacks to implement recursion
b. Recursion decrease the time complexity and space complexity of a program
c. All recursive programs can be rewritten without recursion using the stacks
d. Recursive programs result in stack errors (Stack exhaustion) when termination
statements are not defined properly.
21. Below is a piece of code to traverse the elements of a binary tree. Which traversal does
this do?
public void traverse(Tree root)
{
If (root == null) {
return;
}
traverse(root.left());
traverse(root.right());
printf(“%d”, root.data());
}
a. Pre Order Traversal
b. Post Order Traversal
c. In Order Traversal
d. Level Order Traversal
22. Which of the following is not true for the following code segment?
class A
{
Page 7 of 10
private : int sum(int x, int y)
{
return x+y;
}
public: A()
{
}
A(int x, int y)
{
Cout << sum(x,y);
}
};
a. Constructor can be created with zero argument
b. Constructor prints sum, if two parameters are passed with object creation
c. Constructor will give error if float values are passed
d. Constructor will take 0 as default value for parameters if not passed and prints 0 as
sum
23. Which of the following statements is incorrect regarding call by value and call by
reference parameter passing techniques.
a. In call by value, the value of the actual parameter is copied and the copy is passed to
the function.
b. In call by value, actual parameters and functions formal parameters point to the
same memory location
c. In call by reference, actual parameters and functions formal parameters point to the
same memory location.
d. In call by reference, any modifications to the parameters will be reflected in the
calling function.
24. Which key declares that an index in one table is related to that in another?
a. Primary
b. Foreign
c. Secondary
d. Relational
25. Which of the following should be used to find all the courses taught in the Aug 2020
semester but not in the Jan 2021 semester?
Page 8 of 10
a. SELECT COUNT (DISTINCT ID) FROM takes WHERE (course id, sec id, semester, YEAR)
IN (SELECT course id, sec id, semester, YEAR FROM teaches WHERE teaches.ID=
10101);
b. SELECT DISTINCT course id FROM SECTION WHERE semester = ’Aug’ AND YEAR=
2020 AND course id NOT IN (SELECT course id FROM SECTION WHERE semester =
’Jan’ AND YEAR= 2021);
c. SELECT DISTINCT course_id FROM instructor WHERE name NOT IN (’Aug’, ’Jan’);
d. SELECT course id FROM SECTION WHERE semester = 'Jan' AND YEAR= 2021);
Page 9 of 10
Section B – 5 Questions (25 Marks)
Questions 26,27,28 – Fill-in-the-blanks : Each question carries 3 marks
Question 29 – Coding – 6 marks
Question 30 – Coding – 10 marks
26. Reverse a string using recursion. Choose an option to complete.
void reverse(const string & str) {
size_t numOfChars = str.size();
if(numOfChars == 1) {
cout << str << endl;
} else {
cout << str[numOfChars - 1];
reverse( __________FILL_IN_THE_BLANK_________);
}
}
27. Function to convert octal number to decimal. Choose an option to complete.
int octalToDecimal(int octalNumber)
{
int decimalNumber = 0, i = 0, rem;
while (octalNumber != 0)
{
rem = octalNumber % 10;
octalNumber /= 10;
decimalNumber += ___ FILL_IN_THE_BLANK ___;
++i;
}
return decimalNumber;
}
28. The following program finds the maximum value contained in the array P of size n ( n > 1).
Please complete this program by filling the blank.
Page 10 of 10
int a=0, b=n-1;
while (___ FILL_IN_THE_BLANK ___)
{
if (p[a] <= p[b])
{
a = a+1;
}
else
{
b = b-1;
}
}
printf("Max value is %d",p[a])
29. Write a function that takes 2 arguments: numberList (array of integers), baseLine (integer) and
prints the count of elements in numberList that is less than baseLine and count of elements in
numberList that is more than baseLine. Eg: numberList={10,20,30,40,50,60} and baseLine=45,
output should be
Below BaseLine : 4
Above BaseLine: 2
Note: You can write the code in Java or Python
.
30. Write a program that takes a path to a file name as an argument (.txt file), reads the file and
generates a new file that has every alternate line swapped. In the new file, line 2 is line 1 of
original file, line 3 of new file is line 4 of original file, line 4 of new file is line 3 of original file and
so on. In addition to the output, weightage will be given to program structure, code
optimization, error handling, boundary conditions etc.
Note: You can write the code in Java or Python

More Related Content

What's hot

GSP 215 RANK Achievement Education--gsp215rank.com
GSP 215 RANK Achievement Education--gsp215rank.comGSP 215 RANK Achievement Education--gsp215rank.com
GSP 215 RANK Achievement Education--gsp215rank.com
claric169
 
Class 7 maths PAPER
Class 7 maths PAPERClass 7 maths PAPER
Class 7 maths PAPER
Arvind Saini
 
Mid module review
Mid module reviewMid module review
Mid module review
mlabuski
 
Module 7 geometric PMR
Module 7 geometric PMRModule 7 geometric PMR
Module 7 geometric PMR
roszelan
 
Ece175 computer programming for engineering applications homework assignment ...
Ece175 computer programming for engineering applications homework assignment ...Ece175 computer programming for engineering applications homework assignment ...
Ece175 computer programming for engineering applications homework assignment ...
Song Love
 
Assignment solution-week7
Assignment solution-week7Assignment solution-week7
Assignment solution-week7
PUSHPALATHAV1
 
Soalan matematik t 1
Soalan matematik t 1Soalan matematik t 1
Soalan matematik t 1
Azman Samer
 
Math y1 dlp paper 1
Math y1 dlp paper 1Math y1 dlp paper 1
Math y1 dlp paper 1
Wany Hardy
 
Str8ts Weekly Extreme #36 - Solution
Str8ts Weekly Extreme #36 - SolutionStr8ts Weekly Extreme #36 - Solution
Str8ts Weekly Extreme #36 - Solution
SlowThinker
 
Math unit26 solving inequalities
Math unit26 solving inequalitiesMath unit26 solving inequalities
Math unit26 solving inequalities
eLearningJa
 
5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Data transfer using bipartite graph
Data transfer using bipartite graphData transfer using bipartite graph
Data transfer using bipartite graph
SwathiSundari
 
Representation of numbers and characters
Representation of numbers and charactersRepresentation of numbers and characters
Representation of numbers and characters
warda aziz
 
Complex number, polar form , rectangular form
Complex number, polar form , rectangular formComplex number, polar form , rectangular form
Complex number, polar form , rectangular form
alok25kumar
 
Mid Year Form 1 Paper 1 2010 Mathematics
Mid Year Form 1 Paper 1 2010 MathematicsMid Year Form 1 Paper 1 2010 Mathematics
Mid Year Form 1 Paper 1 2010 Mathematics
sue sha
 
Math y1 dlp paper 2
Math y1 dlp paper 2Math y1 dlp paper 2
Math y1 dlp paper 2
Wany Hardy
 
Module 6 Algebric PMR
Module 6 Algebric PMRModule 6 Algebric PMR
Module 6 Algebric PMR
roszelan
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
Sreeju Sree
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
BGS Institute of Technology, Adichunchanagiri University (ACU)
 
Crct review
Crct reviewCrct review
Crct review
msj1998
 

What's hot (20)

GSP 215 RANK Achievement Education--gsp215rank.com
GSP 215 RANK Achievement Education--gsp215rank.comGSP 215 RANK Achievement Education--gsp215rank.com
GSP 215 RANK Achievement Education--gsp215rank.com
 
Class 7 maths PAPER
Class 7 maths PAPERClass 7 maths PAPER
Class 7 maths PAPER
 
Mid module review
Mid module reviewMid module review
Mid module review
 
Module 7 geometric PMR
Module 7 geometric PMRModule 7 geometric PMR
Module 7 geometric PMR
 
Ece175 computer programming for engineering applications homework assignment ...
Ece175 computer programming for engineering applications homework assignment ...Ece175 computer programming for engineering applications homework assignment ...
Ece175 computer programming for engineering applications homework assignment ...
 
Assignment solution-week7
Assignment solution-week7Assignment solution-week7
Assignment solution-week7
 
Soalan matematik t 1
Soalan matematik t 1Soalan matematik t 1
Soalan matematik t 1
 
Math y1 dlp paper 1
Math y1 dlp paper 1Math y1 dlp paper 1
Math y1 dlp paper 1
 
Str8ts Weekly Extreme #36 - Solution
Str8ts Weekly Extreme #36 - SolutionStr8ts Weekly Extreme #36 - Solution
Str8ts Weekly Extreme #36 - Solution
 
Math unit26 solving inequalities
Math unit26 solving inequalitiesMath unit26 solving inequalities
Math unit26 solving inequalities
 
5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...5th semester Computer Science and Information Science Engg (2013 December) Qu...
5th semester Computer Science and Information Science Engg (2013 December) Qu...
 
Data transfer using bipartite graph
Data transfer using bipartite graphData transfer using bipartite graph
Data transfer using bipartite graph
 
Representation of numbers and characters
Representation of numbers and charactersRepresentation of numbers and characters
Representation of numbers and characters
 
Complex number, polar form , rectangular form
Complex number, polar form , rectangular formComplex number, polar form , rectangular form
Complex number, polar form , rectangular form
 
Mid Year Form 1 Paper 1 2010 Mathematics
Mid Year Form 1 Paper 1 2010 MathematicsMid Year Form 1 Paper 1 2010 Mathematics
Mid Year Form 1 Paper 1 2010 Mathematics
 
Math y1 dlp paper 2
Math y1 dlp paper 2Math y1 dlp paper 2
Math y1 dlp paper 2
 
Module 6 Algebric PMR
Module 6 Algebric PMRModule 6 Algebric PMR
Module 6 Algebric PMR
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...7th Semester (June; July-2015) Computer Science and Information Science Engin...
7th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Crct review
Crct reviewCrct review
Crct review
 

Similar to Samplepaper

Cp manual final
Cp manual finalCp manual final
Cp manual final
itprasad1237
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
IIUM
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
rosemarybdodson23141
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqs
saadkhan672
 
Mcq+questions+cxc+it
Mcq+questions+cxc+itMcq+questions+cxc+it
Mcq+questions+cxc+it
jimkana13
 
Technical questions
Technical questionsTechnical questions
Technical questions
Kirthan S Holla
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
sujatam8
 
c programing
c programingc programing
c programing
bibek lamichhane
 
LMmanual.pdf
LMmanual.pdfLMmanual.pdf
LMmanual.pdf
NarutoUzumaki413489
 
GSP 215 RANK Education Your Life--gsp215rank.com
GSP 215 RANK Education Your Life--gsp215rank.comGSP 215 RANK Education Your Life--gsp215rank.com
GSP 215 RANK Education Your Life--gsp215rank.com
thomashard64
 
GSP 215 RANK Inspiring Innovation--gsp215rank.com
GSP 215 RANK Inspiring Innovation--gsp215rank.com GSP 215 RANK Inspiring Innovation--gsp215rank.com
GSP 215 RANK Inspiring Innovation--gsp215rank.com
KeatonJennings102
 
GSP 215 RANK Lessons in Excellence-- gsp215rank.com
GSP 215 RANK Lessons in Excellence-- gsp215rank.comGSP 215 RANK Lessons in Excellence-- gsp215rank.com
GSP 215 RANK Lessons in Excellence-- gsp215rank.com
RoelofMerwe102
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
Pamidimukkala Sivani
 
Cpph exam a_2019_s1
Cpph exam a_2019_s1Cpph exam a_2019_s1
Cpph exam a_2019_s1
Obedience Kgwete
 
Pgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paperPgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paper
Eneutron
 
GSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.comGSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.com
kopiko85
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
gurbaxrawat
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
Education
 
ECET 340 Effective Communication/tutorialrank.com
 ECET 340 Effective Communication/tutorialrank.com ECET 340 Effective Communication/tutorialrank.com
ECET 340 Effective Communication/tutorialrank.com
jonhson203
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
mshoaib15
 

Similar to Samplepaper (20)

Cp manual final
Cp manual finalCp manual final
Cp manual final
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
 
Name _______________________________ Class time __________.docx
Name _______________________________    Class time __________.docxName _______________________________    Class time __________.docx
Name _______________________________ Class time __________.docx
 
Computer programming mcqs
Computer programming mcqsComputer programming mcqs
Computer programming mcqs
 
Mcq+questions+cxc+it
Mcq+questions+cxc+itMcq+questions+cxc+it
Mcq+questions+cxc+it
 
Technical questions
Technical questionsTechnical questions
Technical questions
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
c programing
c programingc programing
c programing
 
LMmanual.pdf
LMmanual.pdfLMmanual.pdf
LMmanual.pdf
 
GSP 215 RANK Education Your Life--gsp215rank.com
GSP 215 RANK Education Your Life--gsp215rank.comGSP 215 RANK Education Your Life--gsp215rank.com
GSP 215 RANK Education Your Life--gsp215rank.com
 
GSP 215 RANK Inspiring Innovation--gsp215rank.com
GSP 215 RANK Inspiring Innovation--gsp215rank.com GSP 215 RANK Inspiring Innovation--gsp215rank.com
GSP 215 RANK Inspiring Innovation--gsp215rank.com
 
GSP 215 RANK Lessons in Excellence-- gsp215rank.com
GSP 215 RANK Lessons in Excellence-- gsp215rank.comGSP 215 RANK Lessons in Excellence-- gsp215rank.com
GSP 215 RANK Lessons in Excellence-- gsp215rank.com
 
(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2(Www.entrance exam.net)-tcs placement sample paper 2
(Www.entrance exam.net)-tcs placement sample paper 2
 
Cpph exam a_2019_s1
Cpph exam a_2019_s1Cpph exam a_2019_s1
Cpph exam a_2019_s1
 
Pgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paperPgcet Computer Science 2015 question paper
Pgcet Computer Science 2015 question paper
 
GSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.comGSP 215 RANK Education Counseling -- gsp215rank.com
GSP 215 RANK Education Counseling -- gsp215rank.com
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
assembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YUassembly language programming and organization of IBM PC" by YTHA YU
assembly language programming and organization of IBM PC" by YTHA YU
 
ECET 340 Effective Communication/tutorialrank.com
 ECET 340 Effective Communication/tutorialrank.com ECET 340 Effective Communication/tutorialrank.com
ECET 340 Effective Communication/tutorialrank.com
 
Bsc math previous exam quetions
Bsc math previous exam quetionsBsc math previous exam quetions
Bsc math previous exam quetions
 

Recently uploaded

欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
karimimorine448
 
Parabolic antenna alignment system with Real-Time Angle Position Feedback
Parabolic antenna alignment system with Real-Time Angle Position FeedbackParabolic antenna alignment system with Real-Time Angle Position Feedback
Parabolic antenna alignment system with Real-Time Angle Position Feedback
StevenPatrick17
 
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
mukeshomran942
 
internship presentation of three-storeyed reinforced concrete building
internship presentation of three-storeyed reinforced concrete buildinginternship presentation of three-storeyed reinforced concrete building
internship presentation of three-storeyed reinforced concrete building
ThihaHtun17
 
5 key differences between Hard skill and Soft skills
5 key differences between Hard skill and Soft skills5 key differences between Hard skill and Soft skills
5 key differences between Hard skill and Soft skills
RuchiRathor2
 
23. Certificate of Appreciation Ramanji.
23. Certificate of Appreciation Ramanji.23. Certificate of Appreciation Ramanji.
23. Certificate of Appreciation Ramanji.
Manu Mitra
 
22. Certificate of Appreciation Deepika.
22. Certificate of Appreciation Deepika.22. Certificate of Appreciation Deepika.
22. Certificate of Appreciation Deepika.
Manu Mitra
 
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
balliuvilla512
 
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
gnokue
 
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
waldorfnorma258
 
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
cenaws
 
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
ahmedendrise81
 
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
yhkox
 
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
1wful2fm
 
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
lyurzi7r
 
Khushi Saini, An Intern from The Sparks Foundation
Khushi Saini, An Intern from The Sparks FoundationKhushi Saini, An Intern from The Sparks Foundation
Khushi Saini, An Intern from The Sparks Foundation
khushisaini0924
 
Engeneering Model Traffic Lights Circuit
Engeneering Model Traffic Lights CircuitEngeneering Model Traffic Lights Circuit
Engeneering Model Traffic Lights Circuit
KethavathVenkatesh3
 
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
kkkkr4pg
 
PAC_Orientation_Package.ppt Post abortion care Post abortion care Post a...
PAC_Orientation_Package.ppt  Post abortion care  Post abortion care    Post a...PAC_Orientation_Package.ppt  Post abortion care  Post abortion care    Post a...
PAC_Orientation_Package.ppt Post abortion care Post abortion care Post a...
Addis53
 
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
zqgk8x
 

Recently uploaded (20)

欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
欧洲杯外围-欧洲杯外围赛程-欧洲杯外围压注|【​网址​🎉ac99.net🎉​】
 
Parabolic antenna alignment system with Real-Time Angle Position Feedback
Parabolic antenna alignment system with Real-Time Angle Position FeedbackParabolic antenna alignment system with Real-Time Angle Position Feedback
Parabolic antenna alignment system with Real-Time Angle Position Feedback
 
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
欧洲杯投注-欧洲杯投注投注官方网站-欧洲杯投注买球投注官网|【​网址​🎉ac99.net🎉​】
 
internship presentation of three-storeyed reinforced concrete building
internship presentation of three-storeyed reinforced concrete buildinginternship presentation of three-storeyed reinforced concrete building
internship presentation of three-storeyed reinforced concrete building
 
5 key differences between Hard skill and Soft skills
5 key differences between Hard skill and Soft skills5 key differences between Hard skill and Soft skills
5 key differences between Hard skill and Soft skills
 
23. Certificate of Appreciation Ramanji.
23. Certificate of Appreciation Ramanji.23. Certificate of Appreciation Ramanji.
23. Certificate of Appreciation Ramanji.
 
22. Certificate of Appreciation Deepika.
22. Certificate of Appreciation Deepika.22. Certificate of Appreciation Deepika.
22. Certificate of Appreciation Deepika.
 
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
美洲杯投注-美洲杯投注比分-美洲杯投注比分投注|【​网址​🎉ac44.net🎉​】
 
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
一比一原版(surrey毕业证书)英国萨里大学毕业证成绩单修改如何办理
 
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
体育博彩论坛-十大体育博彩论坛-体育博彩论坛|【​网址​🎉ac55.net🎉​】
 
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
一比一原版坎特伯雷大学毕业证(UC毕业证书)学历如何办理
 
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
欧洲杯买球-欧洲杯买球买球推荐-欧洲杯买球买球推荐网站|【​网址​🎉ac10.net🎉​】
 
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
在线办理(UOIT毕业证书)安大略省理工大学毕业证在读证明一模一样
 
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
一比一原版美国西北大学毕业证(NWU毕业证书)学历如何办理
 
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
一比一原版美国罗格斯大学毕业证(rutgers学位证)如何办理
 
Khushi Saini, An Intern from The Sparks Foundation
Khushi Saini, An Intern from The Sparks FoundationKhushi Saini, An Intern from The Sparks Foundation
Khushi Saini, An Intern from The Sparks Foundation
 
Engeneering Model Traffic Lights Circuit
Engeneering Model Traffic Lights CircuitEngeneering Model Traffic Lights Circuit
Engeneering Model Traffic Lights Circuit
 
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
办理阿卡迪亚大学毕业证(uvic毕业证)本科文凭证书原版一模一样
 
PAC_Orientation_Package.ppt Post abortion care Post abortion care Post a...
PAC_Orientation_Package.ppt  Post abortion care  Post abortion care    Post a...PAC_Orientation_Package.ppt  Post abortion care  Post abortion care    Post a...
PAC_Orientation_Package.ppt Post abortion care Post abortion care Post a...
 
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
一比一原版英国伦敦南岸大学毕业证(LSBU学位证)如何办理
 

Samplepaper

  • 1. Page 1 of 10 Section A – 25 Questions (25 Marks) Multiple Choice Questions, No Negative Marking, No Partial Marking. 1 Mark for each correct answer 1. Which of the following numbers doesn’t fit the below series. 343, 512, 729, 1000, 1329 a. 512 b. 343 c. 1329 d. 729 2. If in a certain language PROSE is coded as PPOQE, how is LIGHT coded in that code ? a. LIGFT b. LGGFT c. LGGHT d. LLGFE 3. Raghu tosses a coin 6 times. The probability that the number of times he gets heads will not be greater than the number of times he gets tails is. a. 21/64 b. 3/32 c. 41/64 d. 21/32 4. If Praveen and Naveen together can complete a piece of work in 15 days and Naveen alone in 20 days, in how many days can Praveen alone complete the work? a. 60 b. 45 c. 40 d. 30 5. A boat running upstream takes 8 hours 48 minutes to cover a certain distance, while it takes 4 hours to cover the same distance running downstream. What is the ratio between the speed of the boat and speed of the water current respectively? a. 2:1
  • 2. Page 2 of 10 b. 3:2 c. 8:3 d. Cannot be determined 6. Abhi and Vabby take part in a 100 m race. Abhi runs at 5 kmph. Abhi gives Vabby a start of 8 m (meaning Abhi starts the race when Vabby has already covered 8m) and still beats him by 8 seconds. The speed of Vabby is: a. 5.15 kmph b. 4.14 kmph c. 4.25 kmph d. 4.4 kmph 7. A bag contains 2 red, 3 green and 2 blue balls. Two balls are drawn at random. What is the probability that none of the balls drawn is blue? a. 10 / 21 b. 11 / 21 c. 5 / 7 d. 2 / 7 8. There is a 60% increase in an amount in 6 years at simple interest. What will be the compound interest for Rs. 12,000 after 3 years (compounded annually) at the same rate? a. 2160 b. 3120 c. 3972 d. 6240 9. The average temperature for Wednesday, Thursday and Friday was 40 degrees celsius. The average for Thursday, Friday and Saturday was 41 degrees celsius. If the temperature on Saturday was 42 degree celsius, what was the temperature on Wednesday? a. 39 b. 44 c. 38 d. 41 10. A father said to his son, "I was as old as you are at the present at the time of your birth". If the father's age is 38 years now, the son's age 4 years back was: a. 34 b. 23 c. 15
  • 3. Page 3 of 10 d. 19 11. The sum of the first 16 terms of an AP whose first term and third term are 5 and 15 respectively is ? a. 600 b. 765 c. 640 d. 680 12. . There are two poles, one on each side of the road. The higher pole is 54 m high. From the top of this pole, the angle of depression of the top and bottom of the shorter pole is 30 and 60 degrees respectively. Find the height of the shorter pole. Use the below references of the trigonometric table and angle of depression definition. a. 40m b. 24m c. 36m d. Cannot be determined 13. The difference between a two-digit number and the number obtained by interchanging the positions of its digits is 36. What is the difference between the two digits of that number? a. 3 b. 4 c. 9 d. Cannot be determined
  • 4. Page 4 of 10 14. What does f1(8) return for this function. int f1 (int n) { if(n == 0 || n == 1) return n; else return (2*f1(n-1) + 3*f1(n-2)); } a. 1661 b. 59 c. 1640 d. 73 15. What is the output of the below program ? int main() { int a=14; while(a<20) { ++a; if(a>=16 && a<=18) { continue; } printf("%d ", a); } return 0; } a. 15 16 17 18 19 b. 15 18 19 c. 15 16 20 d. 15 19 20 16. What does the following program print? int main () {
  • 5. Page 5 of 10 int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i++; } i--; for (j = 7; j > 4; j--) { int i = j/2; a[i] = a[i] - 1; } printf ("%d, %d", i, a[i]); } a. 2, 3 b. 2, 4 c. 3, 2 d. 3, 3 17. What’s the output of the following program?. Consider int is allocated 2 bytes of memory in the system. int main() { int a = 5, b = 9, c; c = a ^ b // ^ means XOR operator c = c << 2 // << Left shift operator printf(“%d”, c); return 0; } a. 0 b. 14 c. 48 d. 144 18. Which one of the following is not true? a. Kernel is the program that constitutes the central core of the operating system b. Kernel is the first part of operating system to load into memory during booting
  • 6. Page 6 of 10 c. Kernel is made of various modules which cannot be loaded in the running operating system. d. Kernel remains in the memory during the entire computer session 19. In operating systems, an asynchronous call __________________________ a. returns immediately, without waiting for the I/O to complete b. does not return immediately and waits for the I/O to complete c. consumes a lot of time d. is too slow 20. Which of the following is not true about Recursion a. Program languages internally use the stacks to implement recursion b. Recursion decrease the time complexity and space complexity of a program c. All recursive programs can be rewritten without recursion using the stacks d. Recursive programs result in stack errors (Stack exhaustion) when termination statements are not defined properly. 21. Below is a piece of code to traverse the elements of a binary tree. Which traversal does this do? public void traverse(Tree root) { If (root == null) { return; } traverse(root.left()); traverse(root.right()); printf(“%d”, root.data()); } a. Pre Order Traversal b. Post Order Traversal c. In Order Traversal d. Level Order Traversal 22. Which of the following is not true for the following code segment? class A {
  • 7. Page 7 of 10 private : int sum(int x, int y) { return x+y; } public: A() { } A(int x, int y) { Cout << sum(x,y); } }; a. Constructor can be created with zero argument b. Constructor prints sum, if two parameters are passed with object creation c. Constructor will give error if float values are passed d. Constructor will take 0 as default value for parameters if not passed and prints 0 as sum 23. Which of the following statements is incorrect regarding call by value and call by reference parameter passing techniques. a. In call by value, the value of the actual parameter is copied and the copy is passed to the function. b. In call by value, actual parameters and functions formal parameters point to the same memory location c. In call by reference, actual parameters and functions formal parameters point to the same memory location. d. In call by reference, any modifications to the parameters will be reflected in the calling function. 24. Which key declares that an index in one table is related to that in another? a. Primary b. Foreign c. Secondary d. Relational 25. Which of the following should be used to find all the courses taught in the Aug 2020 semester but not in the Jan 2021 semester?
  • 8. Page 8 of 10 a. SELECT COUNT (DISTINCT ID) FROM takes WHERE (course id, sec id, semester, YEAR) IN (SELECT course id, sec id, semester, YEAR FROM teaches WHERE teaches.ID= 10101); b. SELECT DISTINCT course id FROM SECTION WHERE semester = ’Aug’ AND YEAR= 2020 AND course id NOT IN (SELECT course id FROM SECTION WHERE semester = ’Jan’ AND YEAR= 2021); c. SELECT DISTINCT course_id FROM instructor WHERE name NOT IN (’Aug’, ’Jan’); d. SELECT course id FROM SECTION WHERE semester = 'Jan' AND YEAR= 2021);
  • 9. Page 9 of 10 Section B – 5 Questions (25 Marks) Questions 26,27,28 – Fill-in-the-blanks : Each question carries 3 marks Question 29 – Coding – 6 marks Question 30 – Coding – 10 marks 26. Reverse a string using recursion. Choose an option to complete. void reverse(const string & str) { size_t numOfChars = str.size(); if(numOfChars == 1) { cout << str << endl; } else { cout << str[numOfChars - 1]; reverse( __________FILL_IN_THE_BLANK_________); } } 27. Function to convert octal number to decimal. Choose an option to complete. int octalToDecimal(int octalNumber) { int decimalNumber = 0, i = 0, rem; while (octalNumber != 0) { rem = octalNumber % 10; octalNumber /= 10; decimalNumber += ___ FILL_IN_THE_BLANK ___; ++i; } return decimalNumber; } 28. The following program finds the maximum value contained in the array P of size n ( n > 1). Please complete this program by filling the blank.
  • 10. Page 10 of 10 int a=0, b=n-1; while (___ FILL_IN_THE_BLANK ___) { if (p[a] <= p[b]) { a = a+1; } else { b = b-1; } } printf("Max value is %d",p[a]) 29. Write a function that takes 2 arguments: numberList (array of integers), baseLine (integer) and prints the count of elements in numberList that is less than baseLine and count of elements in numberList that is more than baseLine. Eg: numberList={10,20,30,40,50,60} and baseLine=45, output should be Below BaseLine : 4 Above BaseLine: 2 Note: You can write the code in Java or Python . 30. Write a program that takes a path to a file name as an argument (.txt file), reads the file and generates a new file that has every alternate line swapped. In the new file, line 2 is line 1 of original file, line 3 of new file is line 4 of original file, line 4 of new file is line 3 of original file and so on. In addition to the output, weightage will be given to program structure, code optimization, error handling, boundary conditions etc. Note: You can write the code in Java or Python