MCQs / Computer Science / NSCT: Problem Solving & Analytical Skills

NSCT: Problem Solving & Analytical Skills MCQs — Computer Science (page 2)

302 multiple-choice questions on NSCT: Problem Solving & Analytical Skills from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.

26. A man walks 3 km East, then 4 km North. How far is he from the starting point?

  1. 7 km
  2. 5 km
  3. 1 km
  4. 12 km

Answer: B) 5 km

Explanation: By Pythagoras, √(3² + 4²) = 5. Lesson 1.1 · Problem Solving & Analytical Skills

Discuss this question

27. What is the binary representation of the decimal number 255?

  1. 100000000
  2. 11111110
  3. 11111111
  4. 100000001

Answer: C) 11111111

Explanation: 255 = 11111111₂ (repeated division by 2). Lesson 1.4 · Problem Solving & Analytical Skills

Discuss this question

28. A manager must choose 5 interns from 8 applicants (order does not matter). How many choices are possible?

  1. 64
  2. 40
  3. 6720
  4. 56

Answer: D) 56

Explanation: nCr = 8C5 = 56. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

29. In how many ways can 4 different prizes be given to 4 of 9 students (order matters)?

  1. 126
  2. 1512
  3. 3024
  4. 6561

Answer: C) 3024

Explanation: nPr = 9P4 = 3024. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

30. If A = 1, B = 2, …, Z = 26, what is the sum of the letter values of CLOUD?

  1. 55
  2. 56
  3. 65
  4. 53

Answer: A) 55

Explanation: Add the positions: 3 + 12 + 15 + 21 + 4 = 55. Lesson 1.3 · Problem Solving & Analytical Skills

Discuss this question

31. A price is increased by 20% and then decreased by 20%. The net change is:

  1. 4% decrease
  2. 2% decrease
  3. No change
  4. 4% increase

Answer: A) 4% decrease

Explanation: 20 − 20 + (20 × −20)/100 = −4%. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

32. The three basic control structures of any algorithm are:

  1. Sequence, selection and iteration
  2. Input, output and storage
  3. Class, object and method
  4. Compile, link and run

Answer: A) Sequence, selection and iteration

Explanation: Every program combines these three. Lesson 1.4 · Problem Solving & Analytical Skills

Discuss this question

33. Hiding unnecessary details and focusing on the essential features is:

  1. Iteration
  2. Recursion
  3. Decomposition
  4. Abstraction

Answer: D) Abstraction

Explanation: A map is an abstraction of the real city. Lesson 1.4 · Problem Solving & Analytical Skills

Discuss this question

34. Two fair dice are rolled. What is the probability that the sum is 10?

  1. 1/6
  2. 1/4
  3. 1/12
  4. 1/10

Answer: C) 1/12

Explanation: 3 favourable outcomes out of 36, so 1/12. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

35. A manager must choose 3 interns from 10 applicants (order does not matter). How many choices are possible?

  1. 30
  2. 720
  3. 120
  4. 130

Answer: C) 120

Explanation: nCr = 10C3 = 120. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

36. The best first step when a user reports a bug is to:

  1. Release a new version
  2. Reproduce the bug reliably
  3. Blame the user
  4. Rewrite the whole module

Answer: B) Reproduce the bug reliably

Explanation: You cannot fix what you cannot reproduce. Lesson 1.6 · Problem Solving & Analytical Skills

Discuss this question

37. What does this algorithm output for n = 9075? s = 0 while n 0: s = s + (n mod 10) n = n div 10 print s

  1. 22
  2. 5709
  3. 21
  4. 4

Answer: C) 21

Explanation: It adds the digits: 9 + 0 + 7 + 5 = 21. Lesson 1.4 · Problem Solving & Analytical Skills

Discuss this question

38. Find the next number in the series: 7, 14, 28, 56, 112, ?

  1. 225
  2. 168
  3. 224
  4. 222

Answer: C) 224

Explanation: Multiply by 2 each time. Lesson 1.3 · Problem Solving & Analytical Skills

Discuss this question

39. Adding print statements to see variable values during execution is called:

  1. Profiling memory
  2. Compiling
  3. Tracing (print debugging)
  4. Refactoring

Answer: C) Tracing (print debugging)

Explanation: It shows how values change step by step. Lesson 1.6 · Problem Solving & Analytical Skills

Discuss this question

40. Rs. 6,000 is shared in the ratio 1 : 4. What is the smaller share?

  1. Rs. 1,500
  2. Rs. 4,800
  3. Rs. 1,200
  4. Rs. 1,300

Answer: C) Rs. 1,200

Explanation: Smaller share = 6000 × 1/5 = 1,200. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

41. A subscription price is first increased by 30% and then increased by 20%. The overall effect is:

  1. decrease of 56%
  2. increase of 56%
  3. increase of 50%
  4. increase of 58%

Answer: B) increase of 56%

Explanation: Successive change = a + b + ab/100 = 30 + (20) + (30×20)/100 = 56%. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

42. How many passwords of 3 different letters can be made from 26 letters (order matters)?

  1. 78
  2. 17,576
  3. 15,600
  4. 2,600

Answer: C) 15,600

Explanation: 26 × 25 × 24 = 15,600. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

43. Find the odd one out: Python, Java, Oracle, C++

  1. Oracle
  2. Python
  3. Java
  4. C++

Answer: A) Oracle

Explanation: Oracle is a database / company; the others are programming languages. Lesson 1.3 · Problem Solving & Analytical Skills

Discuss this question

44. Which is the negation of "All tests passed"?

  1. All tests failed
  2. Some tests passed
  3. At least one test failed
  4. No test passed

Answer: C) At least one test failed

Explanation: The negation of 'all' is 'at least one is not'. Lesson 1.1 · Problem Solving & Analytical Skills

Discuss this question

45. How many times does the loop run? python n = 64 steps = 0 while n 1: n = n // 2 steps += 1 print(steps)

  1. 32
  2. 5
  3. 6
  4. 7

Answer: C) 6

Explanation: Halving 64 until it reaches 1 takes 6 steps (≈ log₂ 64). Lesson 1.6 · Problem Solving & Analytical Skills

Discuss this question

46. Setting a breakpoint in an IDE lets you:

  1. Encrypt the program
  2. Pause execution and inspect variables
  3. Compile faster
  4. Delete code

Answer: B) Pause execution and inspect variables

Explanation: Breakpoints are the main debugging tool. Lesson 1.6 · Problem Solving & Analytical Skills

Discuss this question

47. A server processes 1,200 requests per minute. How many in 2.5 hours?

  1. 180,000
  2. 3,000
  3. 18,000
  4. 30,000

Answer: A) 180,000

Explanation: 1,200 × 150 = 180,000. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

48. A value changes from 2000 to 2600. What is the percentage change?

  1. 30% decrease
  2. 30% increase
  3. 300/13% increase
  4. 600% increase

Answer: B) 30% increase

Explanation: Change ÷ old value × 100 = 600 ÷ 2000 × 100 = 30%. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

49. Which statement is logically equivalent to "If a user is an admin, then the user can delete files"?

  1. If a user cannot delete files, then the user is not an admin
  2. If a user can delete files, then the user is an admin
  3. A user is an admin and can delete files
  4. If a user is not an admin, then the user cannot delete files

Answer: A) If a user cannot delete files, then the user is not an admin

Explanation: The contrapositive (NOT q → NOT p) is always equivalent. Lesson 1.1 · Problem Solving & Analytical Skills

Discuss this question

50. A train runs at 72 km/h. Its speed in m/s is:

  1. 25
  2. 20
  3. 7.2
  4. 72

Answer: B) 20

Explanation: 72 × 5/18 = 20 m/s. Lesson 1.2 · Problem Solving & Analytical Skills

Discuss this question

Previous Page 2 of 13 Next

Practise NSCT: Problem Solving & Analytical Skills MCQs

More Computer Science chapters