0% found this document useful (0 votes)
28 views10 pages

Untitled Document

The document contains a series of sets with questions and answers related to computer science concepts, programming, and Python language. Each set covers various topics including memory types, programming constructs, data types, and flowchart symbols. The content is structured in a quiz format, providing correct answers for each question.

Uploaded by

2009gvgl
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)
28 views10 pages

Untitled Document

The document contains a series of sets with questions and answers related to computer science concepts, programming, and Python language. Each set covers various topics including memory types, programming constructs, data types, and flowchart symbols. The content is structured in a quiz format, providing correct answers for each question.

Uploaded by

2009gvgl
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/ 10

Set 1:

1.​ What does CPU stand for?​


a) Central Processing Unit​

2.​ Which memory is known for its high speed and is placed between the CPU and primary
memory?​
a) Cache Memory​

3.​ Assertion (A): The octal number system has a base value of 8.​
Reason (R): The octal number system uses 8 digits, from 0 to 7, to form numbers.​
a) Both A and R are true, and R is the correct explanation for A​

4.​ Which of the following is an application of AI?​


b) Traffic Management Systems​

5.​ What does the process of ‘coding’ involve?​


c) Converting the algorithm into a format understood by the computer​

6.​ What is the purpose of a flowchart?​


a) To represent an algorithm visually​

7.​ What is source code?​


b) High-level language code​

8.​ Which of the following is NOT an arithmetic operator in Python?​


d) &&​

9.​ What is a loop inside another loop called?​


b) Nested loop​

10.​ What is a user-defined function?​


b) A function defined by the programmer​

11.​ Which of the following is not a valid string method?​


d) isnumber()​

12.​ Which of the following is a valid way to create a list in Python?​


a) [2, 4, 6, 8, 10, 12]​

13.​ How are elements of a tuple accessed?​


b) Using indexing and slicing​
14.​ How can you access all keys in a dictionary?​
a) dict1.keys()​

15.​ What are the two types of digital footprints?​


a) Active and Passive​

Set 2:

1.​ What does GUI stand for?​


a) Graphical User Interface​

2.​ Which device is considered the first computing device?​


a) Abacus​

3.​ What is the base value of the binary number system?​


a) 2​

4.​ Which is an example of immersive experience technology?​


b) Augmented Reality (AR)​

5.​ In a flowchart, which symbol represents the start or end?​


c) Oval​

6.​ Which step involves checking if a program meets user requirements?​


d) Testing​

7.​ Which of the following is a valid identifier in Python?​


b) abc123​

8.​ Which operator is used for exponentiation in Python?​


b) **​

9.​ What is used to implement decision-making in Python?​


b) if..else statement​

10.​ Which keyword is used to create a function in Python?​


d) def​

11.​ What does the built-in function len() return when applied to a string?​
b) The number of characters in the string​

12.​ Which data types can a list contain?​


a) Mixed data types​
13.​ A tuple with a single element can be created by using:​
a) (element,)​

14.​ Which of the following is used to access all values in a dictionary?​


b) dict1.values()​

15.​ An example of sensitive data is:​


c) Biometric information​

Set 3:

1.​ What does ROM stand for?​


a) Read Only Memory​

2.​ Which type of software typically includes operating systems, device drivers, and utilities?​
a) System Software​

3.​ What is the binary equivalent of the hexadecimal number (2F)16?​


a) 101111​

4.​ What is a primary component of a robot?​


b) Sensors​

5.​ What does the parallelogram symbol in a flowchart represent?​


c) Input/Output​

6.​ Why is it necessary to debug a program?​


b) To ensure the program runs without errors​

7.​ Statement A: Python is a low-level language.​


Statement B: Python is an interpreted language.​
d) Only B is correct​

8.​ Which of the following is a mutable data type in Python?​


c) List​

9.​ How can a block of code be created in Python?​


b) Using indentation​

10.​ Which of the following is a math module function in Python?​


a) ceil()​

11.​ What is the result of str1.isupper() if str1 = 'HELLO WORLD!'?​


a) True​
12.​ Which of the following checks if an element is in a list?​
a) in​

13.​ What operator is used to repeat elements of a tuple?​


b) *​

14.​ What is the correct way to concatenate two tuples?​


b) tuple1 + tuple2​

15.​ What does the term 'netizen' refer to?​


b) A person who is actively involved in online communities​

Set 4:

1.​ Who is known as the "Father of the computer" for his concept of the Analytical Engine?​
a) Charles Babbage​

2.​ A 4-bit word is:​


b) Nibble​

3.​ What is the full form of ASCII?​


a) American Standard Code for Information Interchange​

4.​ Following is a three-dimensional, computer-generated simulation that mimics the real


world:​
a) Virtual Reality​

5.​ What is the use of debugging?​


a) To find and correct the errors​

6.​ What does the rhombus (Diamond) symbol in a flowchart represent?​


d) Decision​

7.​ Following is an unordered collection of items separated by commas and enclosed in curly
brackets:​
b) Set​

8.​ Which of the following is also called type casting?​


a) Explicit Conversion​

9.​ In range() function, if the start value is not specified, then by default the list starts from:​
b) 0​

10.​ Which of the following is the data type conversion function in Python?​
a) type()​
11.​ Which symbol is used to denote string concatenation?​
a) +​

12.​ Each individual element of a list can be accessed using:​


a) Index​

13.​ What will be the output of the following code? tuple1 = (2,4,6,8,10,12); print(tuple1[-1])​
c) 12​

14.​ What is a dictionary in Python?​


b) Unordered collection of key-value pairs​

15.​ Which of the following is a cloud-shared storage?​


a) Google Drive

Set 5:

1.​ Who developed the concept of stored program?​


d) John Von Neumann​

2.​ Which of the following is an example of proprietary software?​


d) Microsoft Windows OS​

3.​ Which of the following is the mechanism of converting data into cipher using a specific
code?​
a) Encoding​

4.​ Following is one of the prime components of a robot:​


a) Sensor​

5.​ Which of the following is the amount of memory required by an algorithm?​


a) Space complexity​

6.​ Which of the following is considered a non-formal language that helps programmers to
write algorithms?​
c) Pseudocode​

7.​ Which of the following data types stores unique values in an unordered way?​
b) Set​
8.​ Following error is also called a semantic error:​
b) Logical error​

9.​ What does the continue statement do?​


d) Skip the current iteration​

10.​ Following is the syntax to use a default value for a parameter in a function:​
a) def function_name(parameter=value):​

11.​ Which symbol is used to denote string concatenation?​


a) +​

12.​ What is the output of the following code? list("computer")​


a) ['c', 'o', 'm', 'p', 'u', 't', 'e', 'r']​

13.​ Which of the following functions returns the length of a tuple?​


a) len()​

14.​ How do you add a new element to a dictionary?​


d) dict1[key] = value​

15.​ Which of the following symptoms is commonly complained about by users of digital
devices?​
a) Eye strain​

Set 6:

1.​ A device that receives data (information) from a computer system for display:​
b) Output device​

2.​ Following is the non-volatile memory:​


a) ROM​

3.​ ISCII stands for:​


a) Indian Script Code for Information Interchange​

4.​ Following is an example of a Government-provided cloud computing platform:​


a) MeghRaj​

5.​ Which of the following processes breaks down a complex problem into smaller
sub-problems?​
d) Decomposition​
6.​ What does the rectangle symbol in a flowchart represent?​
c) Process​

7.​ Following is not executed by an interpreter:​


a) Keyword​

8.​ Which of the following type conversions is done automatically by Python?​


a) Implicit​

9.​ All parameters of the range() function must be:​


a) Integers​

10.​ Which of the following must be the trailing parameter in the function header?​
a) Default parameter​

11.​ What type of error is this: strcomputer print(str[10])?​


a) IndexError​

12.​ Which is the valid way to create a list in Python?​


c) [10, 20, 30, 40, 50]​

13.​ Following function returns the number of times the given element appears in the tuple:​
d) count()​

14.​ How do you return the value corresponding to a key in a dictionary?​


d) dict1.get(key)​

15.​ Following refers to inventions, literary and artistic expressions, designs, and symbols:​
d) IPR (Intellectual Property Rights)​

Set 7:

1.​ The brain of the computer is:​


c) CPU​

2.​ The correct expansion of RAM is:​


a) Random Access Memory​

3.​ Base of hexadecimal number system is:​


a) 16​

4.​ Spell checking feature is an example of:​


b) Natural Language Processing​
5.​ Process of identifying a problem, developing an algorithm, and implementing it is:​
a) Problem Analysis​

6.​ Visual representation of an algorithm is:​


c) Flowchart​

7.​ Which operator is used to comment a line in Python?​


c) #​

8.​ Explicit conversion is also called:​


a) Typecasting​

9.​ Statement used to terminate the current loop:​


b) break​

10.​ Which of the following is a mathematical function in Python?​


d) max()​

11.​ Concatenation of strings is called:​


a) Joining strings​

12.​ Creates an empty list if no argument is passed:​


b) list()​

13.​ Which of the following is not a method with respect to dictionaries?​


b) dict()​

14.​ Correct statement to retrieve elements from index 2 to 6 in a tuple:​


a) tuple1[2:7]​

15.​ Which of the following is a social media platform?​


a) Facebook​
Set 1:

16.​ Identifiers are the user-defined names for different parts of a program.
17.​ The if statement forms the selection construct in Python.
18.​ The process of dividing a computer program into separate independent blocks of code is known
as modular programming.
19.​ In Python, lists are mutable, meaning their contents can be changed.
20.​ The keys of a dictionary must be of immutable types.

Set 2:

1.​ The function used to get the data from the user is input().
2.​ The for loop iterates over a sequence.
3.​ A function defined to achieve some tasks as per the programmer’s requirement is called a
user-defined function.
4.​ The method to combine two lists is called extend().
5.​ To remove an element from a dictionary using a key, pop() function is used.

Set 3:

16.​ The input() function returns the read value as of string type.
17.​ The continue statement terminates only a single iteration of the loop.
18.​ The function header always ends with a colon (:).
19.​ The method to arrange a list in order is sort().
20.​ To get all the keys of a dictionary, keys() method is used.

Set 4:

16.​ The Python interpreter is also called REPL (Read-Eval-Print Loop).


17.​ Iteration constructs allow programmers to repeat tasks efficiently.
18.​ A function is a named group of instructions that accomplish a specific task when it is invoked.
19.​ A list that appears as an element of another list is a nested list.
20.​ A dictionary is a mutable collection of key-value pairs.
Set 5:

16.​ Comment is not executed by the Python interpreter.


17.​ Repetition statements are also called looping statements.
18.​ A global variable is defined outside any function or any block.
19.​ Lists are mutable data types.
20.​ Each key-value pair in a dictionary is called an item.

Set 6:

16.​ In interactive mode, we can type a Python statement on the >>> prompt.
17.​ IndentationError occurs if indentation is not consistent in a Python program.
18.​ A variable defined inside any function or block is a local variable.
19.​ + symbol is used to denote list concatenation.
20.​ A dictionary is a mapping data type.

Set 7:

16.​ Mapping is a dictionary data type.


17.​ A loop inside another loop is called a nested loop.
18.​ The Python function definition begins with def.
19.​ Elements of a list are enclosed in square ([]) brackets.
20.​ The in operator checks if the element is present in the tuple and returns True; otherwise, it
returns False.

You might also like