Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

cocubes exam paper prevoius, Exams of Computer Science

computer science previous year paper

Typology: Exams

2016/2017

Uploaded on 10/26/2017

abhishek-kumar-17
abhishek-kumar-17 🇮🇳

4.4

(5)

1 document

1 / 61

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cocubes Previous Papers
www.mygeekmonkey.com
Computer Science - Computer Fundamentals
CoCubes Previous Year
Papers and study materials
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d

Partial preview of the text

Download cocubes exam paper prevoius and more Exams Computer Science in PDF only on Docsity!

Cocubes Previous Papers www.mygeekmonkey.com

Computer Science - Computer Fundamentals

CoCubes Previous Year

Papers and study materials

Syllabus

Topics Subtopics Expected Questions

Aptitude Module ( min)

● English Usage

15 Questions

● Reading Comprehension ● Grammar including Articles, Prepositions, Sentence Correction, Speech ● Tenses - Verbal Ability including Synonyms, Antonym, Spellings, Idioms and Phrases

● Analytical Reasoning ● Visual Reasoning ● Statement & Conclusions ● Relationships ● Logical Reasoning ● Attention to Details and Flowcharts

● Numerical Reasoning ● Time & Work ● Speed & Distance ● Algebra ● Equations ● Progressions ● Profit & Loss ● Ratios ● Averages ● Geometry and Data Interpretation

BUY QUANTS PAPER HERE -

https://www.instamojo.com/wishkaushik/cocubes-quants-questions-previous-paperes

BUY LOGICAL REASONING PAPER HERE -

https://www.instamojo.com/wishkaushik/cocubes-analytical-and-logical-reasoning-que

QUESTIONS

  1. Consider following given code and predict its output. main() { int num[ ] = {1,4,8,12,16}; int a,b; int i; a=num; b=num+2; i=a+1; printf("%d,%d,%d\n",i,a,*b); } ops: A. 2,1,8 B. 4,1,8 C. 4,4,8 D. 2,4,

Ans: 2,1,

  1. Suppose f(A,B)=A'+B. Simplified expression for function f(f(x+y,y),z) is : ops : A. x'+z B. xyz C. xy'+z D. None of the mention options

Answer: xy'+z

  1. The number of control lines for a 8-to-1 multiplexer is: ops : A. 3 B. 4 C. 2 D. 5

Ans: 3

  1. Stack is useful for implementing: A. recursion B. depth first search C. both (A) & (B) D. breadth first search

Ans: Both(A) & (B)

  1. HUB is a _______ device and switch is a ________ device. ops : A. multicast,unicast B. multicast,broadcast C. broadcast,unicast D. broadcast,multicast

Ans: C. broadcast,unicast

6.what is the binary equivalent of the number 368? a. b. c. d.

Ans: c.

7.what will be the output of the follwing loop? #include<stdio.h> main() { While(Printf(“%d”, printf(“az”))) Printf(“by”); } a.none of these b.it gives syntax error c.it will print azbyazbyazbyazby… d.it will print azbybyby…

Ans: c.it will print azbyazbyazbyazby…

8.which of the following combinations of the variables x,y,z makes the variable ‘a’ get the value 4 In the following expression? A=(x>y)?((x>z)?x:z):( (y>z)?y:z) a.x=3;y=4;z=2 b.x=6;y=5;z=3 c.x=5;y=4;y=5 d.x=6;y=3;z=

Ans: a.x=3;y=4;z=

9.press the enter key in all of the circumstances except………… a.to insert a blank line into a document b.to begin a new paragraph c.when the insertion point reaches the right margin d.in response to certain word commands

Ans: c.when the insertion point reaches the right margin

10.what will be the output of the following c code? #include<stdio.h> Int main() { Int a =0,b=1,c=2; *( ( a+1==1)? &b : &a)= a? b : c; Printf(“%d, %d, %d \n” a , b, c ;) return 0; } Options: a. 0,1,2 b. 2,2,2 c. 0,2,2 d. 1,1, Ans: Not Available, if you solve it please comment the answer below in comment sections :) thanks

11.The following fragment of c program will print? char c[ ] = “DATA1234” char * P = C; printf (“%S” P+P[3]-P[1]);

a) session layer b) presentation layer c) Transport layer d) Network layer

Ans: Transport Layer

  1. Which of the OSI model layer is responsible for both encryption and decryption a) Presentation layer b)Network layer c) session layer d) transport layer

Ans: Presentation Layer

  1. Identify the point that is not true with respect to stack a) not possible to insert or remove elements anywhere except the top of stack b) Stack supports LIFO(last in first out) for deleting elements c) None of these d) stack is dynamic set where elements are removed in reverse order of insertion

Ans: Not Available, if you solve it please comment the answer below in comment sections :) thanks

  1. When word flag a possible spelling or grammar error, it also changes mark on the spelling and grammar status icon to _____________ a) red x b) red check mark c) green check mark d) green x

Ans: Red X

  1. Identify the point that is NOT true with respect to a queue? a.deletion from the queue happens only at the tail of the queue. b.Queue supports FIFO(First In First Out)order of removal of elements. c.none of these d.Insertion in queue happens only at the head of the queue.

Ans: Not Available, if you solve it please comment the answer below in comment sections :) thanks

  1. Periodic collection of all the free memory space to form contiguous block of free space by an operating system is called: a.garbage collection b.Dynamic memory allocation c.collison d.concatenation

Ans: Not Available, if you solve it please comment the answer below in comment sections :) thanks

  1. In C programming array index starts from: a.0 or 1 b.0 c.1 d.none of these

Ans: 0

  1. java source code is compiled into_________. a.byte code b.word code c.bit code d.objective code

Ans: Byte Code

  1. the output quality of a printer is measured by: a.Dots printed per unit time b.Dot per centimetre c.Dot per sq.inch d.Dot per inch

Ans: Dot per sq.inch

32.The number of full and half adders required to add 16-bit numbers is: a.16 half-adders,0 full-adders b.8 half –adders,8 full-adders c.4 half-adders,12 full-adders d.1 half-adder,15 full-adders

Ans: d.1 half-adder,15 full-adders

  1. To select a group of words,________. a.right-click the first and last characters of the group to be selected b.double-click anywhere within the group to be selected c.click the group button on the formatting toolbar d.drag the mouse pointer through the characters to be selected

Ans: d.drag the mouse pointer through the characters to be selected

34.what will be the output of following C code?

  1. struct abc
  2. {
  3. int b=6;
  4. char c;
  5. }
  6. structure;
  7. int main()
  8. {
  9. int i=sizeof(structure);
  10. printf(“%d”,i);
  11. }

a.4 b.1 c.2 d.

Ans: 6

  1. There is a question, I did not remember but answer is 3NF Ans: Not Available, if you solve it please comment the answer below in comment sections :) thanks

Op 2: 0 to 1024 Op 3: 1 to 1025 Op 4: 0 to 1023 Op 5: Correct Op : 4

Ques5. Rajni wants to create a data-type for the number of books in her book case. Her shelf can accommodate a maximum of 75 books. She allocates 7 bits to the datatype. Later another shelf is added to her book-case. She realizes that she can still use the same data-type for storing the number of books in her book-case. What is the maximum possible capacity of her new added shelf? Op 1: 52 Op 2: 127 Op 3: 53 Op 4: 75 Op 5: Correct Op : 1

Ques6. A new language has 15 possible letters, 8 different kinds of punctuation marks and a blank character. Rahul wants to create two data types, first one which could store the letters of the language and a second one which could store any character in the language. The number of bits required to store these two data-types will respectively be: Op 1: 3 and 4 Op 2: 4 and 3 Op 3: 4 and 5 Op 4: 3 and 5 Op 5: Correct Op : 3

Ques7. Parul takes as input two numbers: a and b. a and b can take integer values between 0 and 255. She stores a, b and c as 1-byte data type. She writes the following code statement to process a and b and put the result in c. c = a + 2*b To her surprise her program gives the right output with some input values of a and b, while gives an erroneous answer for others. For which of the following inputs will it give a wrong answer? Op 1: a = 10 b = 200 Op 2: a = 200 b = 10 Op 3: a = 50 b = 100 Op 4: a = 100 b = 50 Op 5:

Correct Op : 1

Ques8. Prashant takes as input 2 integer numbers, a and b, whose value can be between 0 and 127. He stores them as 7 bit numbers. He writes the following code to process these numbers to produce a third number c. c = a - b In how many minimum bits should Prashant store c? Op 1: 6 bits Op 2: 7 bits Op 3: 8 bits Op 4: 9 bits Op 5: Correct Op : 3

Ques9. Ankita takes as input 2 integer numbers, a and b, whose value can be between 0 and 31. He stores them as 5 bit numbers. He writes the following code to process these numbers to produce a third number c. c = 2*(a - b) In how many minimum bits should Ankita store c? Op 1: 6 bits Op 2: 7 bits Op 3: 8 bits Op 4: 9 bits Op 5: Correct Op : 2

Ques10. A character in new programming language is stored in 2 bytes. A string is represented as an array of characters. A word is stored as a string. Each byte in the memory has an address. The word "Mahatma Gandhi" is stored in the memory with starting address 456. The letter 'd' will be at which memory address? Op 1: 468 Op 2: 480 Op 3: 478 Op 4: 467 Op 5: Correct Op : 3

Ques11. Stuti is making a questionnaire of True-false questions. She wants to define a data-type which stores the response of the candidate for the question. What is the most-suited data type for this purpose? Op 1: integer Op 2: boolean

Op 1: 120 Op 2: 125 Op 3: 255 Op 4: 250 Op 5: Correct Op : 3

Ques15. What will be the output of the following code statements? integer a = 10, b = 35, c = 5 print a * b / c - c Op 1: 65 Op 2: 60 Op 3: Error Op 4: 70 Op 5: Correct Op : 1

Ques16. integer a = 10, b = 35, c = 5 Comment about the output of the two statements? print a * b + c / d print c / d + a * b Op 1: Differ due to left-to-right precedence Op 2: Differ by 10 Op 3: Differ by 20 Op 4: Same Op 5: Correct Op : 4

Ques17. integer a = 40, b = 35, c = 20, d = 10 Comment about the output of the following two statements: print a * b / c - d print a * b / (c - d) Op 1: Differ by 80 Op 2: Same Op 3: Differ by 50 Op 4: Differ by 160 Op 5: Correct Op : 1

Ques18. integer a = 60, b = 35, c = - What will be the output of the following two statements: print ( a > 45 OR b > 50 AND c > 10 )

print ( ( a > 45 OR b > 50 ) AND c > 10 ) Op 1: 0 and 1 Op 2: 0 and 0 Op 3: 1 and 1 Op 4: 1 and 0 Op 5: Correct Op : 4

Ques19. What will be the output of the following pseudo-code statements: integer a = 984, b= //float is a data-type to store real numbers. float c c = a / b print c Op 1: 984 Op 2: 98. Op 3: 98 Op 4: Error Op 5: Correct Op : 3

Ques20. What will be the output of the following pseudo-code statements: integer a = 984 //float is a data-type to store rational numbers. float b= 10, c c = a / b print c Op 1: 984 Op 2: Error Op 3: 98. Op 4: 98 Op 5: Correct Op : 3

Ques21. Smriti wants to make a program to print the sum of square of the first 5 whole numbers (0...4). She writes the following program: integer i = 0 // statement 1 integer sum = 0 // statement 2 while ( i < 5 ) // statement 3 { sum = i*i // statement 4 i = i + 1 // statement 5

Op 3: Statement 3 Op 4: Statement 4 Op 5: Correct Op : 2

Ques24. Sharmili wants to make a program to print the sum of all perfect cubes, where the value of the cubes go from 0 to 100. She writes the following program: integer i = 0, a // statement 1 integer sum = 0; a = ( i * i * i ) while ( i < 100 ) // statement 2 { sum = sum + a // statement 3 i = i + 1 a = ( i * i * i ) // statement 4 } print sum Does this program have an error? If yes, which one statement will you modify to correct the program? Op 1: Statement 1 Op 2: Statement 2 Op 3: Statement 3 Op 4: Statement 4 Op 5: No error Correct Op : 2

Ques25. Bhavya wants to make a program to print the sum of all perfect squares, where the value of the squares go from 0 to 50. She writes the following program: integer i = 1, a // statement 1 integer sum = 0 while ( a < 50 ) // statement 2 { sum = sum + a // statement 3 i = i + 1 a = ( i * i ); // statement 4 } print sum Does this program have an error? If yes, which one statement will you modify to correct the program? Op 1: Statement 1 Op 2: Statement 2 Op 3: Statement 3

Op 4: Statement 4 Op 5: No error Correct Op : 1

Ques26. Vijay wants to print the following pattern on the screen: 2 2 4 2 4 6 2 4 6 8 He writes the following program: integer i = 1, j=2 // statement 1 while ( i <= 4 ) // statement 2 { j = 2; while ( j <=? ) // Statement 3 { print j print blank space j = j + 2 } print end-of-line \takes the cursor to the next line i = i + 1 } What is the value of? in statement 3 :: Op 1: 8 Op 2: i Op 3: 2*i Op 4: 4 Op 5: Correct Op : 3

Ques27. Shravanti writes the following program: integer i = 0, j while ( i < 2 ) {j = 0; while ( j <= 3*i ) {print j print blank space j = j + 3} print end-of-line \takes the cursor to the next line i = i + 1 }

integer i = 1, j, a while ( i <= 4 ) { j = 1; a = 0; while ( a <= 5*i ) { a = 2^j; print a print blank space j = j + 1 } print end-of-line \takes the cursor to the next line i = i + 1 } What will be the output of the program? Op 1: 2 2 4 2 4 8 2 4 8 16 Op 2: 2 4 2 4 8 2 4 8 16 2 4 8 16 32 Op 3: 2 4 2 4 8 2 4 8 2 4 8 16 Op 4: 2 2 4 2 4 2 4 8 16 Op 5: Correct Op : 3

Ques30. Himanshu wants to write a program to print the larger of the two inputted number. He writes the following code: int number1, number 2 input number1, number 2 if (??) // Statement 1 print number else

print number end if Fill in the ?? in statement 1. Op 1: number1>number Op 2: number2>number Op 3: number2 equals number Op 4: number1 <= number Op 5: Correct Op : 1

Ques31. Shalini wants to program to print the largest number out of three inputted numbers. She writes the following program: int number1, number 2, number3, temp; input number1, number2, number3; if (number1>number2) temp = number else temp = number end if if (??) // Statement 1 temp = number end if print temp Fill in the ?? in Statement 1 Op 1: number3 > number Op 2: number3 > temp Op 3: number3 < temp Op 4: number3 > number Op 5: Correct Op : 2

Ques32. Rohit writes the following program which inputs a number and prints "Double digit" if the number is composed of two digits and "Not a double digit" if it is not. int number; if (number>10 AND number < 100) print "Double digit" else print "Not a double digit" end if Rohit tries the following inputs: 5 and 66. The program works fine. He asks his brother Ravi to try the program. When Ravi enters a number, the program doesn't work correctly. What did Ravi enter?