

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Sharda University School of Engineering and Technology Quiz-1(Set 2), 2023- Program: B. Tech Semester: II Course Name: Application Based Programming in Python Course Code: CSE Time: 20 Minutes Total Marks: 10 Note: (1) Attempt all questions. Each question carries ONE mark. (2) If require any missing data, then choose suitably. Q1. What is the output of the following? [1] (a) 182.0 (b) 182 (c) 180 (d) The program will execute with errors Q2. What is the output of the below code? [1] (a) Syntax Error (b) 20 (c) 5 (d) 18 Q3. What is the output of the following code? [1] (a) 5 7 (b) 5 6 (c) 6,7 (d) None Q4. What is the output of the expression: print(-18 // 4) [1] (a) -4 (b) -5 (c) -4.5 (d) 4. Q5. What is the output of the below code: [1] (a) 10 11 12 13 (b) 11 12 13 14 (c) 10 11 12 (d) None
Q6. What will be the output of the following Python code? [1] (a) 1 2 1 0 (b) 0 1 2 0 (c) 1 2 2 0 (d) 1 2 3 4 Q7. Which of the following is the use of id() function in python? [1] (a) Every object in Python doesn’t have a unique id (b) In Python Id function returns the identity of the object (c) Option a and b both (d) None of the above Q8. What will be the output of the following Python code? [1] (a) 0 1 2 3 4 Here (b) 0 1 2 3 4 5 Here (c) 0 1 2 3 Here (d) 0 1 2 4 Here Q9. What will be the output of the following Python code snippet? [1] (a) 012 (b) 0 1 2 0 1 2 (c) 01201 (d) None of these Q10. What will be the output of the below Python code snippet? [1]