Tag: String
-
C++ Programming Questions and Answers – Simple String Template
C++ interview questions and answers focuses on “Simple String Template”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walkin interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be…
-
C++ Programming Questions and Answers – String – 1
C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “String – 1”. C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “String – 1”. Q 1.What will be the output of the following C++ code? #include #include using namespace std; int main(int argc, char const *argv[]) { char str[] = “Hello World”; coutstr;…
-
Python Multiple Choice Quizs Question– String
Q 1. The output of executing string.ascii_letters can also be achieved by:A. string.ascii_lowercase_string.digitsB. string.lowercase_string.uppercaseC. string.lettersD. string.ascii_lowercase+string.ascii_uppercase Show Answer Answer:-D. string.ascii_lowercase+string.ascii_uppercase Explanation Execute in shell and check. Q 2 . What will be the output of the following Python code? A. ollehB. helloC. hD. o Show Answer Answer:-D. o Explanation 1 corresponds to the last index.…