important questions ai (9)
important questions ai (9)
important questions ai (9)
a) Finite steps
b) Ambiguity
c) Input
d) Output
Answer: b) Ambiguity
a) Decision
b) Input/Output
c) Process
d) Start/End
Answer: c) Process
a) Unclear
b) Random
c) Well-defined
d) Infinite
Answer: c) Well-defined
4. Which flowchart symbol represents a decision-making process?
a) Oval
b) Diamond
c) Rectangle
d) Arrow
Answer: b) Diamond
MCQs:
a) Compiled language
b) Interpreted language
c) Low-level language
d) Machine language
a) 9variable
b) _variable
c) variable@name
d) class
Answer: b) _variable
Print(5 ** 2)
a) 10
b) 25
c) 7
d) 32
Answer: b) 25
a) input()
b) scanf()
c) get()
d) read()
Answer: a) input()
5. What does the following Python statement do?
X, y = 5, 10
Print(x + y)
a) Throws an error
b) Prints 15
c) Prints 510
d) Assigns 15 to x
Answer: b) Prints 15
b) +, -, *
c) >, <, ==
d) =, +=, -=
a) //
b) /* */
c) #
d) –
Answer: c) #
8. Which operator is used to compare two values in Python?
a) =
b) ==
c) :=
d) >
Answer: b
Answer:
Oval: Start/End
Rectangle: Process
Diamond: Decision
Parallelogram: Input/Output
Answer:
Step 1: Start
Step 6: Stop
5. Draw a flowchart to calculate the factorial of a number.
Answer: