Showing posts with the label String Manipulation

Using string truehuman = Loves One and All what would be

Q. Using the string truehuman = 'Loves One and All', what would be retu…

Write the Python expression using string slices

Q. Given a string as follows: truehuman = "Loves One and All" Write t…

What would be the possible output of the following code fragments?

Q. What would be the possible output of the following code fragments? …

You can use any string manipulation operators, methods along with str () and int () functions.

Q. What expression would you form so that from the given values, the desired re…

What would Python return when following expressions are evaluated

Q. What would Python return when following expressions are evaluated? As earlie…

MCQ For String Manipulation Class 11 CS

Multiple Choice Question For String Manipulation Class 11 Computer Science (CS)…

True / False For String Manipulation Class 11 CS

True / False For String Manipulation Class 11 Computer Science (CS) 1. Strings …

Fill In the Blanks For String Manipulation Class 11 CS

Fill In the Blanks For String Manipulation Class 11 Computer Science (CS) 1. Th…

Can you add two strings? What effect does + have on strings?

Q. Can you add two strings? What effect does '+' have on strings? Answe…

Can you specify an out of bound index when accessing a single character from a string? Why?

Q. Can you specify an out of bound index when accessing a single character fr…

In a string slice, the start and end values can be beyond limits. Why?

Q. In a string slice, the start and end values can be beyond limits. Why? An…

What happens when from a string slice you skip the start and/or end values of the slice?

Q. What happens when from a string slice you skip the start and/or end values o…

Given a string S, write expressions to print

Q. Given a string S, write expressions to print (i) First five characters of S …

What is the output produced.

Q. What is the output produced ? (i) >>> "-".join(['123&…

What is the output produced?

Q. What is the output produced ? (i) >>> "whenever".find(&qu…

Write a program to input a line of text and create a new line of text where each word of input line is reversed.

Q. Write a program to input a line of text and create a new line of text where …

Write a program to input a line of text and print the biggest word from it.

Q. Write a program to input a line of text and print the biggest word (length w…

Write a program that inputs a line of text and prints out the count of vowels in it.

Q. Write a program that inputs a line of text and prints out the count of vowel…

Write a program to input a formula with some brackets and checks,

Q. Write a program to input a formula with some brackets and checks, and prints…

Write a program that asks the user for a string (only single space between words).

Q. Write a program that asks the user for a string (only single space between w…

Load More That is All