Skip to content
VUBuddy

CS201 Final Term Quiz Spring 2026

Introduction to Programming PDF 683 KBUpdated 23 Oct 2026
Final term past paper CS201 Final Term Quiz Spring 2026 PDF 683 KB
vubuddy.com
Type
Final term past paper
Course
CS201 Introduction to Programming
Size
PDF 683 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 683 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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

  1. 2
  2. 3
  3. 0

Answer: B) 3

Q2. The function used to compare two strings in C++ is: A) strcopy()

  1. strlen()
  2. strcmp()
  3. strcat()

Answer: C) strcat()

Q3. What value does strcmp() return if both strings are identical? A) 1

  1. -1
  2. 0
  3. A positive number

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

  1. 4
  2. 52
  3. 2

Answer: B) 52

Q6. A character string in C++ is essentially an array of type: A) int

  1. float
  2. char
  3. double

Answer: C) double

Q7. To find the length of a string, which standard library function is used? A) strsize()

  1. strlen()
  2. strlength()
  3. count()

Answer: B) strlength()

Q8. "Hello" and "hello" are considered __________ strings by strcmp(). A) Identical

  1. Different
  2. Equal
  3. Null

Answer: B) Equal

Q9. The atoi() function is used to convert a string into a(n): A) Character

  1. Float
  2. Integer
  3. Double

Answer: C) Double

Q10. The header file required for atoi() is: A) iostream.h

  1. stdlib.h
  2. string.h
  3. conio.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

  1. Argument count
  2. Array of strings
  3. Compiler version

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

  1. 1024
  2. 32,767
  3. 65,535

Answer: C) 65,535

14. A struct in C++ allows you to group different __________ under one name. A)

Functions B) Data types

All CS201 files →
CS201 Introduction to Programming All CS201 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.