I will provide you with Important PYQs Computer Science Class 12 in this article. So let us start discussing Important PYQs Computer Science Class 12.

Why to practice Important PYQs Computer Science Class 12?

Important PYQs Computer Science Class 12 are very crucial to ace your computer science class 12 theory exams. Here are few reasons:

Practicing Important PYQs (Previous Year Questions) for Computer Science Class 12 is highly beneficial for several reasons:

  1. Exam Pattern Familiarity
    • PYQs help you understand the types of questions that are frequently asked.
    • They give insights into the marking scheme and weightage of different topics.
  2. Concept Clarity
    • By solving past questions, you reinforce key concepts and improve problem-solving skills.
    • It helps identify strong and weak areas in your syllabus.
  3. Time Management
    • Regular practice improves your speed and accuracy during exams.
    • You learn how to allocate time for different sections effectively.
  4. Boosts Confidence
    • Solving PYQs reduces exam anxiety as you get familiar with question patterns.
    • It increases your confidence in tackling different types of questions.
  5. Identifies Important Topics
    • Certain topics are repeatedly asked in exams, indicating their importance.
    • Practicing PYQs helps you focus more on high-weightage topics.
  6. Improves Answer Writing Skills
    • You learn how to structure answers efficiently to maximize marks.
    • Practicing coding questions enhances programming skills and logic-building.
  7. Reduces Surprise Element
    • Since many questions are repeated in board exams, solving PYQs increases the chances of encountering familiar questions.

So let start with Important PYQs Computer Science Class 12. Here we go!

1 mark questions

As per the CBSE Sample Paper and Previous Year’s question papers, 1-mark questions are an important element of board exams. Let us start with 1-mark questions which include fill-in-the-blank, MCQs, True/False, one-word answers, and all sorts of very short answer types questions. Here we go!

[1] State True or False : “In Python, tuple is a mutable data type”.

[2] The primary key is selected from the set of _____________.
(A) composite keys

(B) alternate keys

(C) candidate keys

(D) foreign keys

[3] What will be the output of the following statement?

print(6+5/4**2//5+8)

(A) –14.0

(B) 14.0

(C) 14

(D) –14

[4] Select the correct output of the code:

S = "text#next"
print(S.strip("t"))

(A) ext#nex

(B) ex#nex

(C) text#nex

(D) ext#next

[5] In SQL, which command will be used to add a new record in a table?
(A) UPDATE
(B) ADD
(C) INSERT
(D) ALTER TABLE

[6] ‘L’ in HTML stands for:

(A) Large

(B) Language

(C) Long

(D) Laser

[7] Identify the valid Python identifier from the following:
(A) 2user

(B) user@2

(C) user_2

(D) user 2

[8] Consider the statements given below and then choose the correct output from the given options:

Game="World Cup 2023"
print(Game[-6::-1])

(A) CdrW

(B) ce o

(C) puC dlroW

(D) Error

Explanation:

Step 1: Understanding Negative Indexing

The string assigned to Game is:

Game="World Cup 2023"

Index positions of each character:

WorldCup2023
Forward Indexes012345678910111213
Backward Indexes-14-13-12-11-10-9-8-7-6-5-4-3-2-1

Step 2: Evaluating Game[-6::-1]

  • Game[-6] → The character at index -6 is 'p'.
  • [::-1] → This means we are slicing in reverse order (from right to left).
  • Game[-6::-1] → Start at 'p' (index -6) and go backward until the beginning.

[9] Predict the output of the following Python statements:

import statistics as s
s.mode ([10, 20, 10, 30, 10, 20, 30])

(A) 30
(B) 20
(C) 10
(D) 18.57

[10] Which of the following output will never be obtained when the given code is executed?

import random
Shuffle = random.randrange(10)+1
Draw = 10*random.randrange(5)
print ("Shuffle", Shuffle, end="#")
print ("Draw", Draw)

(A) Shuffle 1 # Draw 0
(B) Shuffle 10 # Draw 10
(C) Shuffle 10 # Draw 0
(D) Shuffle 11 # Draw 50

[11] Ethernet card is also known as :
(A) LIC

(B) MIC

(C) NIC

(D) OIC

[12] What will be the output of the given code?

a=10
def convert(b=20):
  a=30
  c=a+b
  print(a,c)
convert(30)
print(a)

[13] For the following Python statement :
N = (25)
What shall be the type of N?
(A) Integer
(B) String
(C) Tuple
(D) List

[14] Mr. Ravi is creating a field that contains alphanumeric values and fixed lengths. Which MySQL data type should he choose for the same?
(A) VARCHAR
(B) CHAR
(C) LONG
(D) NUMBER

[15] Fill in the blank : The full form of WWW is _______________________.

[16] ___________ files are stored in a computer in a sequence of bytes.
(A) Text
(B) Binary
(C) CSV
(D) Notepad


[17] Assertion (A) : Global variables are accessible in the whole program.
Reason (R) : Local variables are accessible only within a function or block in which it is declared.

(A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A).
(C) Assertion (A) is true, but Reason (R) is false.
(D) Assertion (A) is false, but Reason (R) is true.

[18] Assertion (A) : If numeric data are to be written to a text file, the data needs to be converted into a string before writing to the file.
Reason (R) : write() method takes a string as an argument and writes it to the text file.
(A) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct explanation of Assertion (A).
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation of Assertion (A).
(C) Assertion (A) is true, but Reason (R) is false.
(D) Assertion (A) is false, but Reason (R) is true.

[19] State True or False: While defining a function in Python, the positional parameters in the function header must always be written after the default parameters.

[20] The SELECT statement when combined with ___________ the clause, returns records without repetition.

(a) DISTINCT 

(b) DESCRIBE

(c) UNIQUE

(d) NULL

[22] What will be the output of the following statement: print(16*5/4*2/5-8)

(a) -3.33          

(b) 6.0

(c) 0.0 

(d) -13.33

[23] What possible output from the given options is expected to be displayed when the following Python code is executed?

import random
Signal=['RED','YELLOW','GREEN']
for K in range(2,0,-1):
  R = random.randrange(K)
  print(Signal[R], end='#')

(a) YELLOW # RED #           

(b) RED # GREEN #

(c) GREEN # RED #   

(d) YELLOW # GREEN #

[24] In SQL, the aggregate function which will display the cardinality of the table is:

(a) sum()

(b) count(*)

(c) avg()

(d) sum(*)

[25] Which protocol out of the following is used to send and receive emails over a computer network?   

(a) PPP                        

(b) HTTP

(c) FTP     

(d) SMTP

[26] Identify the invalid Python statement from the following :  

(a) d = dict()

(b) e = {}

(c) f = []

(d) g = dict{ }

2 Marks Questions

[1] (i) Expand the following terms : URL, XML
(ii) Give one difference between HTTP and FTP.

Ans.:

(i)

  • URL: Uniform Resource Locator
  • XML: Extensible Markup Language

(ii)

FeatureHTTP (HyperText Transfer Protocol)FTP (File Transfer Protocol)
PurposeUsed for transferring web pages and resources over the internet.Used for transferring files between a client and a server.
PortUses port 80 (default).Uses ports 20 and 21 (default).

[2] (i) Define the term IP address with respect to network.
(ii) What is the main purpose of a Router?

[3] Observe the following code carefully and rewrite it after removing all syntactical errors. Underline all the corrections made.

def 1func():
  a=input("Enter a number"))
  if a>=33
      print("Promoted to next class")
  ELSE:
      print("Repeat")

Leave a Reply


Fatal error: Uncaught GuzzleHttp\Exception\ClientException: Client error: `POST https://api.aspose.cloud/connect/token` resulted in a `400 Bad Request` response: {"error":"invalid_client"} in /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 Stack trace: #0 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/Middleware.php(69): GuzzleHttp\Exception\RequestException::create() #1 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(204): GuzzleHttp\Middleware::GuzzleHttp\{closure}() #2 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(153): GuzzleHttp\Promise\Promise::callHandler() #3 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/TaskQueue.php(48): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(248): GuzzleHttp\Promise\TaskQueue->run() #5 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(224): GuzzleHttp\Promise\Promise->invokeWaitFn() #6 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(269): GuzzleHttp\Promise\Promise->waitIfPending() #7 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(226): GuzzleHttp\Promise\Promise->invokeWaitList() #8 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending() #9 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/Client.php(123): GuzzleHttp\Promise\Promise->wait() #10 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(50640): GuzzleHttp\Client->send() #11 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(50648): Aspose\Words\WordsApi->_requestToken() #12 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(50654): Aspose\Words\WordsApi->_checkAuthToken() #13 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(50666): Aspose\Words\WordsApi->_getKey() #14 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/aspose-cloud/aspose-words-cloud/src/Aspose/Words/WordsApi.php(80): Aspose\Words\WordsApi->_checkRsaKey() #15 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/Util.php(24): Aspose\Words\WordsApi->__construct() #16 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/ExportEngine.php(87): AsposeWords\Util::getWordsApi() #17 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/src/AsposeWords/AutoExport.php(26): AsposeWords\ExportEngine->convert() #18 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-includes/class-wp-hook.php(324): AsposeWords\AutoExport->export() #19 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #20 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #21 /home/u251245109/domains/tutorialaicsip.com/public_html/wp-includes/load.php(1279): do_action() #22 [internal function]: shutdown_action_hook() #23 {main} thrown in /home/u251245109/domains/tutorialaicsip.com/public_html/wp-content/plugins/aspose-doc-exporter/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php on line 113