gs gs109 Regular Expressions - Python Regular Expressions - Quiz No.5

gs gs109 Python Quiz

Online Quizzes Preparation

This quiz belongs to book/course code gs gs109 Python of gs organization. We have 134 quizzes available related to the book/course Python. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Regular Expressions. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.

NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.

Question 1: Which of the codes shown below results in a match?
Question 2: What will be the output of the following Python code?

re.split(r'(a)(t)', 'Maths is a difficult subject')
Question 4: What will be the output of the following Python code?

import re s = 'abc123 xyz666 lmn-11 def77' re.sub(r'\b([a-z]+)(\d+)', r'\2\1:', s)
Question 6: What will be the output of the following Python code?

n = re.sub(r'\w+', 'Hello', 'Cats and dogs')
Question 7: What will be the output of the following Python code?

w = re.compile('[A-Za-z]+') w.findall('It will rain today')
Question 9: What will be the output of the following Python code?

re.split(r'\s+', 'Chrome is better than explorer', maxspilt=3)


Online Quizzes of gs109 Python

Other LANG related online quizzes

Other categories of gs Online Quizzes

Other organizations

Theme Customizer

Gaussian Texture



Gradient Background