ECAT Computer Science MCQs for CS-stream students — programming basics, data structures & computer fundamentals.
20 of 1,357 Computer Science questions, shown with their correct answers — open an answer to check yourself, then practice the full set free.
Study the C code: int x = 73; printf("%d", x % 11); What is printed by this code?medium
Correct answer: 7
A network switch, which forwards data frames using MAC addresses, operates at which layer of the OSI model?easy
A live look at what's newest across TestGenius
The progress report of a pupil is prepared from the:
Practice thisThe dyer is dyeing the yarn.
Practice thisBrezhnev, the name borne from 1982 to 1988 in honour of the Soviet leader by a city on the Kama River in Tatarstan, is the present-day Russian city of:
Practice 1,357 Computer Science multiple-choice questions from ECAT, covering easy, medium and hard level questions (660 easy, 410 medium, 287 hard). Attempt a batch, check each answer instantly and repeat as often as you like — free, with no signup. Explore more subjects in ECAT.
Computer Science sits in ECAT and currently has 1,357 practice questions: 49% easy, 30% medium, 21% hard. This set leans towards easier questions, which makes it a comfortable starting point before moving on to harder material.
With 1,357 questions, doing about 25 a day would take roughly 55 days to complete once, so splitting it into weekly targets works best.
Examples of questions in this subject:
There are 1,357 Computer Science MCQs on TestGenius (660 easy, 410 medium, 287 hard), as part of ECAT. You can practise all of them free on this page.
Yes. Computer Science practice on TestGenius is completely free and guest practice needs no signup. Creating a free account unlocks unlimited questions, timed quizzes and certificates.
Yes. A sample of Computer Science questions with their correct answers is shown on this page, and in the practice session every answer is checked instantly as you attempt it.
Work through the Computer Science questions in batches, review each correct answer after you attempt it, and repeat the questions you got wrong until you can answer them confidently. Then take a timed quiz to check yourself under exam pressure.
Correct answer: Data Link layer
Which of the following is a valid binary digit?easy
Correct answer: 1
The protocol that allows a machine to find its IP address when it knows only its own hardware (MAC) address is:easy
Correct answer: RARP (Reverse Address Resolution Protocol)
What is the binary equivalent of the decimal number 97?easy
Correct answer: 1100001
Study the C code: printf("%d", -7 / 2); What is printed by this code?easy
Correct answer: -3
What is the sum of the binary numbers 101110 and 1101?easy
Correct answer: 111011
What is the 2's complement of the binary number 11001001?hard
Correct answer: 00110111
Study the C code: int x = 84; printf("%d", x % 9); What is printed by this code?easy
Correct answer: 3
In C, a comment written between /* and */ differs from a single-line comment starting with // because it:medium
Correct answer: Can extend over several (multiple) lines
In hashing, the hash function h(k) = k mod 10 is applied to the key 247. At which index of the hash table will this key be placed?medium
Correct answer: 7
Study the C code: int fact(int n) { if (n <= 1) return 1; return n * fact(n - 1); } If fact(4) is called, what value does it return?easy
Correct answer: 24
A NOT gate (inverter) is a logic gate that has:medium
Correct answer: One input and one output
Study the C code: int n = 100; while (n > 10) { n = n / 2; } printf("%d", n); What is printed by this code?easy
Correct answer: 6
In a database, an index created on a column of a table is used mainly to:medium
Correct answer: Speed up the searching and retrieval of rows from the table
What is the 2's complement of the binary number 01101011?easy
Correct answer: 10010101
A stack is initially empty. The operations Push 4, Push 11, Push 19, Pop, Push 23 are performed one after another. How many elements are there in the stack at the end?easy
Correct answer: 3
Study the C code: int a[6] = {4, 9, 14, 19, 24, 29}; printf("%d", a[5] + a[1]); What is printed by this code?easy
Correct answer: 38
What is the decimal value of the hexadecimal number C5?easy
Correct answer: 197
What is the result of multiplying the binary numbers 111 and 101?medium
Correct answer: 100011
Computer Science sits in ECAT and currently has 1,357 practice questions: 49% easy, 30% medium, 21% hard. This set leans towards easier questions, which makes it a comfortable starting point before moving on to harder material.
Yes — signed-in users can take a timed quiz in any subject and earn a certificate by passing it. Practice mode itself is untimed and does not issue certificates.