0% found this document useful (0 votes)
188 views18 pages

CS PYQs

The document contains a series of multiple-choice questions (MCQs) related to computer science concepts, covering topics such as data types, programming languages, computer networks, and software. Each question presents a set of options for the reader to choose from, testing their knowledge on various technical subjects. The questions are categorized into two sections: 2024 CS PYQs and 2023 CS PYQs.

Uploaded by

hellonaushadali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
188 views18 pages

CS PYQs

The document contains a series of multiple-choice questions (MCQs) related to computer science concepts, covering topics such as data types, programming languages, computer networks, and software. Each question presents a set of options for the reader to choose from, testing their knowledge on various technical subjects. The questions are categorized into two sections: 2024 CS PYQs and 2023 CS PYQs.

Uploaded by

hellonaushadali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

2024 CS PYQs

41. one gigagbyte is approximately equal to

A.5

B.10

C.15

D.25

42. In Computer world, Trojan Horse refers to

A. Virus

B. Malware

C. Worm

D. Spyware

43. Computer resolution measures?

A. Size of screen

B. Shape of screen

C. Number of pixels

D. Number of colours it support

44. A collection of program that controls how your computer system runs and processes information is called

A. Operating System

B. Computer

C. Office

D. Compiler

45. _________ is the application of the investigation and analysis techniques to gather and preserve evidence from a
particular computing device in a way that is suitable for presentation in a court of law.
A. Robotics
B. Animation
C. Simulation
D.Computer Forensics

46. What is the full form of W3C?

A. World Wide Web Consortium

B. World Wide Web Company


C. World Wide Web Center

D. World Wide Web Command

47. One nibble is equal to how many bits?

A. 4 bits

B. 8 bits

C. 12 bits

D. 16 bits

48. Which of the following is an anti-virus software

A. Dreamweaver

B. McAfee

C. Flash

D. Oracle

49. What is the term used for verification of a login name and password in computer

terminology?

A. Configuration

B. Authentication

C. Accessibility

D. Logging

50. A technique used by codes to convert an analog signal into a digital bit stream is known

as

A. Pulse code modulation

B. Pulse stretcher

C. Query processing

D. Queue management

51. What is e-commerce?

A. Buying and selling computer products

B. Buying and selling products and services not found in stores

C. Buying and selling international goods

D.Buying and selling products and services over the Internet


52. In networking terminology UTP means

A. Ubiquitious Teflon Port

B. Unshielded Twisted Pair

C. Uniformly Terminating Port

D. Unshielded T-connector Port

53. What is a Firewall in Computer Network?

A. The physical boundary of Network

B. An operating System of Computer Network

C A system designed to prevent unauthorized access.

D. A web browsing Software

54. Which of the following is the numerical computing software for scientists and

mathematicians?

A. EDGE

B., Excel

C. MATLAB

D. Ada

55. A wireless technology built in electronic gadgets used for exchanging data over short

distances is?

A. Bluetooth

B. Wifi

C. Modem

D. USB

56. Full form of URL is ?

A. Uniform Resource Locator

B. Uniform Resource Link

C. Uniform Registered Link

D. Unified Resource Link

57. Who is also known as Father of Computer?

A. Vint Cerf
B. Tim Berner Lee

C. Charles Babbage

D. Steve Jobs

58. An electronic path, that sends signals from one part of computer to another is?

A. Logic Gate

B. Bus

C. Modem

D. Serial Port

59. A device used for video games, flight simulators, training simulators and for controlling

industrial robots

A. Mouse

B. Light pen

C. Joystick

D. Keyboard

60. What is used to make computer chips?

A. Copper

B. Steel

C. Silicon

D. Iron

61. Which Technology company has launched a new initiative called 'Startup School'?

A. Microsoft

B.Google

C. Amazon

D. Apple

62. Mac operating system is developed by which company

A. Microsoft

B. IBM

C. Samsung

D. Apple
63. Which term is related to database?

A. PHP

B. Oracle

C. Java

D. Assembly

64. Total number of function keys on a computer keyboard is

A. 10

B. 12

C.14

D. 8

65. The octal equivalent of the binary number (0010010100) is

A. 422

B. 242

C. 224

D. 226

66. The 10's complement of 455 is

A. 543

B. 544

C. 545

D. 546

67. The 2's complement of 5 is,

A. 1011

B. 0101

C.1010

D. 0011

68. The decimal equivalent of (0.101)2 will be

A.6.5

B. 0.625

C. 0.25
D. 0.875

69. Which of the following is false?

A. x+y= y+x

B. x.y = y.x

C. x.x' = 1

D.x+x' = 1

70. The Boolean expression A+BC is the reduced form of

A. AB+BC

B. (A+B)(A+C)

C. (A+C)B

D. (A+B)C

71. The expression of an XOR gate is

A. A'B + AB'

B. AB+ A'B'

C. A+ A.B

D. A' + B'

72. If M denotes the number of memory locations and N denotes the word size, then an expression that denotes the
storage capacity is

A. M⭑N

B. M+N

C. 2M+N

D. 2M-N

73. What is the high speed memory between the main memory and the CPU called?

A. Register Memory

B. Cache Memory

C. Storage Memory

D. Virtual Memory
74. Which of the following error can a compiler check?

A. Syntax Error

B. Logical Error

C. Both Logical and Syntax Error

D. Compiler cannot check errors

75. Which feature of OOP indicates code reusability?

A. Abstraction

B. Polymorphism

C. Encapsulation

D. Inheritance

76. Internet works on

A. packet switching

B. circuit switching

C. both packet switching and circuit switching

D. data switching

77. What will be values for a and c after execution of the following code if a is 10, b is 5, and c is 10?

if ((a > b) && (a <= c))

a = a + 1;

else

C=c+1;

A. a 10, c=10

B. a = 10, c = 11

C. a= 11, c = 10 Da

D. a=11, c = 11

78. Which of the following statement is correct about the array?

A. In the array, users can only allocate the memory at the run time.

B. In the array, users can only allocate the memory at the compile time.

C. The array is a primitive and non-linear data structure that only stores a similar data

type.

D. All of these
79. What is meant by 'a' in the following C file operation? fp = fopen("Random.txt", "a");

A. Attach

B. Append

C. Apprehend

D. Add

80. The size of a union is determined by the size of the

A. First member in the union

B. Last member in the union

C. A Largest member in the union

D. Sum of the sizes of all the members

2023 CS PYQs
41. A Disk Defragmenter is an example of

(A) Application software

(C) Compiler

(B) System software

(D) Utility program

42. Convert the following decimal number to a number system with radix 3.

(A) 10221

(C) 12201

(B) 10212

(D) None of these

43. Which of the following is an encoding scheme created for Indian scripts:

(A) Unicode

(B) ISCII

(C) ESCII

(D) ASCII

44. Convert (10025)10 = (?)16

(A) 64.6

(C) 64.4
(B) 46.4

(D) None of these

45. Consider the following C language declarations & statements. Which statement is erroneous?

float fl=9.9;

float f2=66;

const float *ptrF1;

float * const ptrF2=&f2;

ptrF1=&fl;

ptrF2++;

ptrF1++;

(A) float const ptrF2=&f2;

(B) ptrF++

(C) ptrF2++;

(D) None of these

46. What will be output of following statements?

char ch;

ch=130;

printf("\nvalue of ch=%d",ch);

(A) - 126

(C) 127

(B) - 127

(D) None of these

47.What will be output of following statements?

int n1=3, n2=6, a;

printf("(n1^n2)+(a^a)=%d", (n1^n2) + (a^a));

(A) (n1^n2)+(a^a)=-6

(C) run-time error

(B) Compilation error

(D) (nl^n2)+(a^a)=5
48. What is the output of following C code segment?

int i;

for(i=0; i<=2; i++)

{ switch(i)

{case 1: printf("%2d", i);

case 2: printf("%2d", i); continue;

default: printf("%2d",i);

(A) 01112

(C) 01121

(B) 0112

(D) Syntax error

49. What is the output of following C program:

int main()

char ch = 'A';

int x=97;

int y = sizeof(++x);

printf("\nx is %d",x);

while(ch <='F')

return 0;

switch(ch)

case 'A':

case 'B'

case 'C':

case 'D': ch++; break;

case 'E':

case 'F': ch++;

} putchar (ch);
}

Retutn 0;

(A) x is 97 ABCDEF

(C) x is 97 BCDEFG

(B) x is 98 BCDEFG

(D) Run-time error

50. What is the output of following C program:

void e(int x)

if (x > 0)

e (--x);

printf("%2d",x);

e(--x);

int main()

{ e(3);

return 0;

(A) 0120

(C) Compile-time error

(B) 0220

(D) Run timr error

51. How this scanf("%i%c", &i, &c ); will assign values to the variables i & c, when the input given by user

is :

29 w

(A) i= 29 c=''

(C) i = 29 c=garbage value


52. Minimum & Maximum range of values for 'float' data type in C is:

(A) Unlimited

(C) 10-37 to 1038

(B) 1.17*10-37 to 3.4*1038

53. Which out of these is not valid for C language?

(A) The value of external/ global variable is unaffected by any manipulation of local variable.

(B) Local variable takes precedence over global variable.

(C) Global variable takes precedence over local variable.

(D) None of these

54. C was originally developed in the 1970s by Dennis Ritchie at Bell Telephone Laboratories, Inc. which is an
outgrowth of two earlier languages, called :

(A) "K&RC" and B

(B) BPCL and B

(C) A & B

(D) ANSI C and B

55. Multiply 1101 by 1011

(A) 10001111

(C) 10000111

(B) 11001111

(D) 10101111

56.Subtract (2761) from (6357)

(A) (3076)

(C) (2376)

(D) 3376

57. Which out of these is not correct pairing?

(A) BCD-7 bit

(B) EBCDIC-8 bit

(C) ASCII-8 bit

(D) None of these


58.Which out of these does not support VoIP?

(A) WhatsApp

(B) Fscetime

(C) IMO

(D) None of these

59. By using... addition or subtraction of signed numbers are performed.

(A) Is complement

(C) direct addition/subtraction

(B) 2s complement

(D) None of those

60. Which statement out of these is not correct about multiprocessor systems:

(A) They provide fault-tolerance& high speed.

(B) Tightly coupled multiprocessor systems are much more energy-efficient than clusters.

(C) Loosely coupled multiprocessor systems/clusters are interconnected via a high-speed communication system.

(D) None of these

61. Which file format is not suitable for SD card in Android phone?

(A) FAT32

(C) exFAT

62. Which out of these is not a type of ROM?

(A) Masked ROM

(C) Flash BIOS

(B) EEPROM

(D) Flash drive

63. Select the next to smallest memory size from given below options:

(A) petabyte

(B) exabyte

(C) yottabyte

(D) zettabyte
64. When you simplify algebraically given below expression to a minimum sum of products, how many terms did you
get?

(A+B+C+E') (A+B'+D'+E) (B'+C'+D'+E')

(A) 7

(B) 4

(C) 5

(D) 6

65. The simplified form of given below expression is :

A'CD'E+A'B'D'+ABCE+ABD

(A) A'B'D'+ABD+BCD'E

(B) A'B'D'+ABD+ACD'E

(C) A'B'D'+ABD+BAD'E

(D) None of these

66. EXAMPLE OF 5TH GENERATION LANGUAGE is

(A)ASP

(B)javascript

(C)SQl

(D)None of these

67.the output of following C statement is

Printf(“\nhellow” + 3)

(A) lo

(B) 1lo

(C) ello

(D) Runtime error

68. Give output of following C code:

Int count(unsigned x)

Int b;

For(b=0; x!=0: x>> = 1)


If(x &01)

b++;

return b;

Int main()

unsigned int a = 3;

printf(“%d”, count(a))

return 0;

(A) 2

(B) 3

(C) 4

(D) None of these

69. what is the data type of the following expression :

Expr1 ? expr2 : expr3

If expr1 is as of type float and expr2 is type int

(A) int

(B) float

(C) double

(D) none of these

70 which operator out of these has got highest precedence

(A) ,

(B) <

(C) ? :

(D) []

71. which operator out of these has left to right associativity

(A) !

(B) ++

(C) ,

(D) ? :
72. consider the following Code segment:

If (n>0)

For (i=0; i<3; i++)

If(array[i] > 0) {

Printf(“%d\n”, array[i];)}

else

printf(“\n n is negative\n”);

here, else is pared with which ‘if’

(A) first

(B) secind

(C) both

(D) none of these

73 For this kind of declaration of main() function in a C program 'copy.C':

int main(int argc, char *argv[]) {-}

and this call of main function at command prompt:

C:\tc\bin&gt;copy filel file2 file3

What will be the value passed in parameter argc?

(A) 3

(B) 4

(C) 5

(D) None of these

74. What is the correct file mode that opens preexisting file in read and write mode :

(A) ab

(B) r+b

(C) w+b

(D) None of these

75. Which C expression correctly represents this statement:

"It decrements pointer p before fetching the character that p points to."

(A) *p--

(B) -- *p
(C) * -P

(D) None of these

76. How many times this statement will execute:

for(; *s== *t&amp;&amp;*t!= '\0'; s++, t++)

if both character pointers 's' and 't' point to the same string "abc".

(A) 4

(C) Run-time error

(B) 3

(D) None of these

77. Which out of these statements is not true:

(A) The continue statement applies only to loops, not to switch.

(B) The break statement provides an early exit from for, while, and do, switch.

(C) The continue statement causes the next iteration of the enclosing for, while, or do loop to begin

(D) None of these

78. Which out of these is not the keyword C99 has added in addition to 32 keywords defined by ANSI C:

(A) Bool

(B) inline

(C) register

(D) restrict

79. Which out of these is not a valid C version?

(A) 2007 another revised version of c programming language came with name CIX

(B) 1989-C89 standard (known as ANSI C or Standard C)

(C) 1990- ANSI C adopted by ISO, known as C90

(D) None of these

80. Who developed World Wide Web version 3 which is known as "Semantic Web"?

(A) Tim Berners Lee

(C) Dennis Richie

(B) Taub Schilling (D) None of these

You might also like