Python is a high-level, interpreted programming language designed to be easy to learn and use. Its syntax is simple and readable, making it popular among beginners and experienced developers alike.
Answer these following Questions:-
Question 1. What "error type" would be the output? bar = "namaste" del bar print(bar)
Question 2. What would be the output? n = 3.7 F_num = math.floor(n) print(F_num)
Question 3. What is the difference between the result of ? 5//2 and 5/2 ?
Question 4. In database table how many PRIMARY KEY can be defined ?
Q uestion 5. In Query "SELECT * FROM students" what does mean * keyword ?
Question 6. How do you access its elements in Dictionary?
Question 7. What will be the output of the code below? list = ['a', 'b', 'c', 'd', 'e'] print list[10:]
Question 8. Write the name of constructor in class?
Question 9. What will be the output of the code below? data = ['a', 'b,d', 'c', 'a', 'b', 'a,c'] count = Counter(data) print(count)
Question 10 . What type of number you will get from this function ? def is_even(num): return num % 2 == 0
Question 11 . A concatination is only possible in what type data ?
Question 12 . What will be the output of the code below ? lst = [123,25,10,5,16,47] for i in lst: if i == 25 or i == 10 or i == 5 or i == 16 or i == 47: continue print(i)
Question 13. Write MySQL clause is used to filter the records returned by a query?
Question 14 . What is default user name of MySQL?
Question 15. What is the name of the key in a column (or set of columns) that uniquely identifies each row in a database table?
Question 16. Which MySQL feature allows a column to automatically increment its value each time a new record is inserted into the table?
Question 17. What will be the output of the code below ? nom = 1234 total = 0 while nom>0: total += (nom%10) nom//=10 print(f"Sum of Digit is {total}")
Question 18. What type of error is this: int("abc")?
Question 19 . What will be the output of the following code? x = "5" y = 2 print(x * y)
Question 20 . What is the output of this expression? print(10 > 5 and 5 < 2)
Your email is not verified. Please verify it now to continue.