- Type
- Final term past paper
- Course
- CS201 Introduction to Programming
- Size
- PDF 683 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 2, 3, 4 of 45. Download the file for all 45 pages.
CS201 FINAL TERM LATEST QUIZ SPRING 2026
Topic 18-19: Pointer to Pointer & String Functions
Q1. A pointer to a pointer is declared using how many asterisks (*)? A) 1
Answer: B) 3
Q2. The function used to compare two strings in C++ is: A) strcopy()
Answer: C) strcat()
Q3. What value does strcmp() return if both strings are identical? A) 1
Answer: C) A positive number
4. Which function compares only a specific number of characters ('n') between two
strings? A) strcmp() B) strncmp() C) strncpy() D) strlen()
Answer: B
Q5. In a deck of cards simulation, how many suits are typically declared? A) 13
Answer: B) 52
Q6. A character string in C++ is essentially an array of type: A) int
Answer: C) double
Q7. To find the length of a string, which standard library function is used? A) strsize()
Answer: B) strlength()
Q8. "Hello" and "hello" are considered __________ strings by strcmp(). A) Identical
Answer: B) Equal
Q9. The atoi() function is used to convert a string into a(n): A) Character
Answer: C) Double
Q10. The header file required for atoi() is: A) iostream.h
Answer: B) string.h
Topic 20-21: Command Line Arguments & Structures
Q11. In main(int argc, char **argv), what does argc represent? A) Argument value
Answer: B) Array of strings
12. The first argument (argv[0]) in command line arguments is usually the: A) First user
input B) Program name C) Number of arguments D) Null character
Answer: B
Q13. What is the maximum number of command-line arguments theoretically possible in some systems? A) 256
Answer: C) 65,535
14. A struct in C++ allows you to group different __________ under one name. A)
Functions B) Data types
Related CS201 files
All CS201 files →- CS201 Final Term MCQs 2026 by VUBuddy Final term PDF 16.6 MB
- CS201 Final Term Past Papers 2024 by Qalb-e-Momin Final term PDF 10.7 MB
- CS201 Final Term Guess Paper 2023 Final term PDF 573 KB
- CS201 Final Term MCQs and Short Notes 2023 by Learning Zone Final term PDF 279 KB
- CS201 Complete Handouts Handout PDF 3.4 MB
- CS201 Quiz 1 Set 6 Quiz PDF 857 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.