Practice Department Of Computer Science And Engineering (29.1.2) - String functions
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Department of Computer Science and Engineering

Practice - Department of Computer Science and Engineering

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

What is a string?

💡 Hint: Think about how you would define text in programming.

Question 2 Easy

What do you get when you concatenate 'Py' and 'thon'?

💡 Hint: Consider what happens when you join two strings.

4 more questions available

Interactive Quizzes

Quick quizzes to reinforce your learning

Question 1

What is a string in programming?

💡 Hint: It's fundamental to text representation.

Question 2

Using .lower() on 'Hello' gives:

HELLO
Hello
hello

💡 Hint: Focus on case changes in strings.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

Write a Python function that takes a string and returns the number of vowels in it.

💡 Hint: Think about looping and conditionals to check each character.

Challenge 2 Hard

Using the KMP algorithm, explain how you would find the substring 'abc' in 'abcabcabd'.

💡 Hint: Focus on precomputing the longest prefix which is also a suffix.

Get performance evaluation

Reference links

Supplementary resources to enhance your learning experience.