.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » Nucleus Placement Papers » Nucleus Previous Year Placement Paper

 

Nucleus Placement Paper -: Python Questions With Answers


Advertisements
Advertisements




Nucleus Previous Years Solved Sample Placement Papers

  1. What will be the output of the following Python function?

    min(max(False,-3,-4), 2,7)

    A. -4

    B. -3

    C. 2

    D. False Answer: Option D

  2. Solution: The function max() is being used to find the maximum value from among -3, -4 and false. Since false amounts to the value zero, hence we are left with min(0, 2, 7). Hence the output is 0 (false).
  3. Which of the following is not a core data type in Python programming?

    A. Tuples

    B. Lists

    C. Class Answer: Option C

    D. Dictionary

  4. Solution: Class is a user-defined data type.
  5. What will be the output of the following Python expression if x=56.236?

    
    print("%.2f"%x)
            

    A. 56.236

    B. 56.23

    C. 56.0000

    D. 56.24 Answer: Option D

  6. Solution: The expression shown above rounds off the given number to the number of decimal places specified. Since the expression given specifies rounding off to two decimal places, the output of this expression will be 56.24. Had the value been x=56.234 (last digit being any number less than 5), the output would have been 56.23.
  7. Which of these is the definition for packages in Python?

    A. A set of main modules

    B. A folder of python modules Answer: Option B

    C. A number of files containing Python definitions and statements

    D. A set of programs making use of Python modules

  8. Solution: A folder of python programs is called as a package of modules.
  9. What will be the output of the following Python function?

    
    len(["hello",2, 4, 6])
            

    A. Error

    B. 6

    C. 4 Answer: Option C

    D. 3

  10. Solution: The function len() returns the length of the number of elements in the iterable. Therefore the output of the function shown above is 4.
  11. What will be the output of the following Python code?

    
    x = 'abcd'
    for i in x:
        print(i.upper())
            

    A.

    A

    B

    C

    D

    B. a b c d

    C. error

    D.

    A

    B

    C

    D

    Answer: Option D

  12. Solution: The instance of the string returned by upper() is being printed.
  13. What is the order of namespaces in which Python looks for an identifier?

    A. Python first searches the built-in namespace, then the global namespace and finally the local namespace

    B. Python first searches the built-in namespace, then the local namespace and finally the global namespace

    C. Python first searches the local namespace, then the global namespace and finally the built-in namespace Answer: Option C

    D. Python first searches the global namespace, then the local namespace and finally the built-in namespace




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy