0% found this document useful (0 votes)
6K views1 page

Digital Python Intermediate iON LX Async SP Assessment 18 21

This document contains 4 multiple choice questions from a Python assessment. The questions cover topics like syntax of the AttlistDeclHandler method, output of a while loop checking for a character in a string, the value of a variable created using a list comprehension, and the Python expression that would produce the output of 56.25.

Uploaded by

mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6K views1 page

Digital Python Intermediate iON LX Async SP Assessment 18 21

This document contains 4 multiple choice questions from a Python assessment. The questions cover topics like syntax of the AttlistDeclHandler method, output of a while loop checking for a character in a string, the value of a variable created using a list comprehension, and the Python expression that would produce the output of 56.25.

Uploaded by

mahesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Digital : Python_Intermediate_iON LX_Async_&_SP_Assessment - Course ID: 54196

CLP - Python - Generic - SelfPaced - Assessment Only - E2 Batch 1

Question 18

Which of the following options is a correct syntax of the “AttlistDecHandler” method?

1. AttlistDeclHandler(elname, attname, type, base)


2. AttlistDeclHandler(elname, attname, base, required)
3. AttlistDeclHandler(elname, attname, type, default, required)
4. AttlistDeclHandler(elname, attname, base, default, systemId)

Question 19

What is the output of the following code in Python 3.x environment?

 x = “abcdef”
 I = “i”
 While I in x:
Print(I, end = “ “)
1. Abcdef
2. Error
3. a b c d e f
4. No Output

Question 20

What is the value of variable ‘x’ in the below shown code?

 X = [ i** +1 for I in range(5) ]


1. [0, 1, 4, 9, 16]
2. [0, 1, 2, 3, 4]
3. [1, 2, 5, 10, 17]
4. Error

Question 21

Which of the following Python 3.4.2 shell expression will produce the below-given output?

56.25

1. >>> 7.5#2
2. >>> 7.5^2
3. >>> 7.5 ! 2
4. >>> 7.5**2

This study source was downloaded by 100000813364844 from CourseHero.com on 01-23-2023 07:33:13 GMT -06:00

https://www.coursehero.com/file/104858710/Digital-Python-Intermediate-iON-LX-Async-SP-Assessment-18-21docx/
Powered by TCPDF (www.tcpdf.org)

You might also like