Chapter 1 computer system Flashcards

1
Q

What does IP stand for in the context of Class 11 IP?

A

Informatics Practices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: The primary focus of the Class 11 IP curriculum is on programming concepts.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: The programming language primarily taught in Class 11 IP is _____.

A

Python

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a variable in programming?

A

A variable is a named storage location in memory that holds data which can be changed during program execution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which data type is used to represent whole numbers in Python?

A

Integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of a loop in programming?

A

A loop is used to execute a block of code multiple times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Multiple Choice: Which of the following is not a valid Python data type? A) List B) Tuple C) Set D) Character

A

D) Character

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the output of the following code: print(2 ** 3)?

A

8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or False: A list in Python can hold items of different data types.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the syntax for defining a function in Python?

A

def function_name(parameters):

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Fill in the blank: The _____ statement is used to exit a loop in Python.

A

break

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the ‘if’ statement in programming?

A

An ‘if’ statement is used to execute a block of code conditionally based on whether a condition is true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Multiple Choice: Which of the following is used to comment a single line in Python? A) // B) # C) /* D) –

A

B) #

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a dictionary in Python?

A

A dictionary is a collection of key-value pairs where each key is unique.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: In Python, strings are immutable.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the purpose of the ‘return’ statement in a function?

A

The ‘return’ statement is used to exit a function and return a value to the caller.

17
Q

Fill in the blank: In Python, the _____ function is used to read input from the user.

18
Q

What is the difference between a list and a tuple in Python?

A

A list is mutable, while a tuple is immutable.

19
Q

Multiple Choice: Which Python keyword is used to handle exceptions? A) try B) catch C) except D) all of the above

A

D) all of the above

20
Q

What is an algorithm?

A

An algorithm is a step-by-step procedure or formula for solving a problem.

21
Q

True or False: A for loop is used for iterating over a sequence.

22
Q

What does IDE stand for?

A

Integrated Development Environment

23
Q

Fill in the blank: The _____ operator is used to compare two values for equality in Python.

24
Q

What is a syntax error?

A

A syntax error occurs when the code does not conform to the rules of the programming language.

25
Q

Multiple Choice: Which of the following is a built-in function in Python? A) print() B) display() C) show() D) output()

A

A) print()

26
Q

What is the purpose of the ‘pass’ statement in Python?

A

The ‘pass’ statement is a null operation used as a placeholder in code.