Python Programming One shot Unit-2 | Most Important Questions | B-tech AKTU | By Engineering Express

preview_player
Показать описание

NOTES - 7300798298 (WhatsApp only)
Notes in Engineering Express Format - 7300798298 (WhatsApp only)

Engineering Express.

Most Important Questions of Python Unit 2
One shot video Python Unit 2
⭐⭐⭐MOST REPEATED QUESTIONS ⭐⭐⭐
Long Questions [7/10 marks question]
Q1) Explain Tuples and Unpacking Sequences in Python Data Structure.
2) Explain the following loop with flow diagram, syntax and suitable example:
(1) For loop
(2) While loop
3) Explain the continue, break, and pass statements with a suitable example.
Q4) Discuss the different types of argument-passing methods in Python.
Explain the variable length argument with any suitable example.
Q5) Explain all the conditional statement in Python using small code
example.
Q6). Write a Python program for how to check if a given number is Fibonacci number.
Q7) Develop a program to calculate the reverse of any entered number.
Q8) Write a program to check an input number is prime or not.
Q9) Write a Python program to convert time from 12 hour to 24-hour format.
Q10) Write and explain an algorithm through python code to generate prime numbers.
Q11) Write a Python program to construct the following pattern, using a nested for loop.
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
Q12) Write a Python program to check if the input year is a leap year or not.

⭐⭐⭐MOST REPEATED QUESTIONS ⭐⭐⭐
Very Short Questions [2 marks question]
Q1) Differentiate fruitful functions and void functions.
Q2) What will be the output of the following Python code?
i = 0
while i less then 3:
print(i)
i += 1
else:
print(0)
Q3) Write a for loop that prints numbers from 0 to 57 using the range function.
Q4) Explain range() function. How do you use a for loop with range() function in Python?
Рекомендации по теме
welcome to shbcf.ru