Python Fundamentals


This lecture series contains videos, study materials and quizzes related to the following topics.
Python character set
Tokens and its types
The basic process to follow the lecture series is.
1- First watch video
2- Read the topic
3- Finally, take the quiz
4- If any problem or error in lecture series comment

Things to remember

Character set is a set of valid characters which Python recognizes and uses.

Python has the following character set.

Letters: {a,b,c,….,z} {A,B,C,…Z}
Digits: {0,1,2,3,4,….,9}
Special Symbols: (), _, #, {}
Whitespaces: newline, tab, formfeed
ASCII and Unicode characters

Sources
Sunita Arora, Computer Science with Python Textbook for Class XI, Dhanpat Rai and Co., Edition 2019, Pages 120-154.

 

You have learned it is time to test yourself

Results

-
Share to Your Friend
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Share to Your Friend
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

#1 Which is a valid identifier in Python?

Correct option is _DS

Option DATA-REC is false because -(hyphen)  can not be part of an identifier.

Option 29CLCT is false because 29( a number i)  can be part of  an identifier, however, it can not be at the beginning.

#2 Keywords are

#3 Identifiers are

#4 An escape sequence is represented by.

#5 What would be the output of the above program? (See ASCII code table corresponding to hexadecimal values)

#6 Which one is a Boolean literal in Python?

#7 Which one is a special literal in Python?

#8 Which quotation mark can be used for a multiline string?

#9 What would be output of the above program?

#10 Which option is correct?

You Can Finish If You Want

Share to Your Friend
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Comment