W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
17 questions for “Strings & string_view”
Found in 1 field. Select a question to see its full answer.
Matching topics
C++
Strings
&
string_view
11
Information Technology
17 questions in 1 technology
#
Question
Technology
Topic
Level
1
What is std::
string_view
and why was it added?
C++ › Strings & string_view
C++
Strings
&
string_view
Beginner
2
What are the dangers of std::
string_view
?
C++ › Strings & string_view
C++
Strings
&
string_view
Intermediate
3
Why should you avoid returning std::
string_view
to local data?
C++ › Strings & string_view
C++
Strings
&
string_view
Intermediate
4
What is the difference between passing const std::string& and std::
string_view
?
C++ › Strings & string_view
C++
Strings
&
string_view
Advanced
5
How do you handle Unicode and encodings in C++
strings
?
C++ › Strings & string_view
C++
Strings
&
string_view
Advanced
6
What is std::string and how does it differ from a C-string?
C++ › Strings & string_view
C++
Strings
&
string_view
Beginner
7
How do you convert between std::string and numbers?
C++ › Strings & string_view
C++
Strings
&
string_view
Beginner
8
What common operations does std::string provide?
C++ › Strings & string_view
C++
Strings
&
string_view
Beginner
9
How does std::string manage memory and what is SSO?
C++ › Strings & string_view
C++
Strings
&
string_view
Intermediate
10
How do you efficiently build up a large string?
C++ › Strings & string_view
C++
Strings
&
string_view
Intermediate
Show all 17 questions in Information Technology