Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Python code... The language this bot didn't recognise, Quizzes of International Law

Python code... The language this bot didn't recognise

Typology: Quizzes

2021/2022

Uploaded on 02/16/2024

vandana-chauhan-1
vandana-chauhan-1 🇮🇳

1 document

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Sharda University
School of Engineering and Technology
Quiz-1(Set 2), 2023-2024
Program: B. Tech Semester: II
Course Name: Application Based Programming in Python Course Code: CSE114
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.5
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
pf3

Partial preview of the text

Download Python code... The language this bot didn't recognise and more Quizzes International Law in PDF only on Docsity!

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]