Skip to main content

Arrays And Strings In C Sharp — Part 1 MCQs with Explanations

Practice high-yield Programming & Software Development MCQs on Arrays And Strings In C Sharp — Part 1 with worked academic solutions for FPSC, PPSC, NTS, NITB, PTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
FPSC, PPSC, NTS...
Estimated Time
48 mins
Exam-Level FPSC PPSC NTS NITB PTS
Verified for Commission Syllabus • Oct 14, 2026
40

Verified Practice Questions

Interactive test mode with detailed academic worked solutions

Live Progress | 0/40 answered
✓ 0 correct ✗ 0 wrong 0% score
Question 1 of 40
★ FPSC ★ PPSC

Which of these methods of class String is used to extract all the characters from a String object?

Question 2 of 40
★ FPSC ★ PPSC

What is the correct way to declare a string array in C#?

Question 3 of 40
★ FPSC ★ PPSC

How do you access the first element of an array named 'numbers' in C#?

Question 4 of 40
★ FPSC ★ PPSC

What is the correct way to initialize an array of integers with values {1, 2, 3} in C#?

Question 5 of 40
★ FPSC ★ PPSC

Which of the following statements is true regarding arrays in C#?

Question 6 of 40
★ FPSC ★ PPSC

How do you find the number of elements in an array named 'values' in C#?

Question 7 of 40
★ FPSC ★ PPSC

What is the correct syntax to declare and initialize a 2D array in C# with dimensions 3x3?

Question 8 of 40
★ FPSC ★ PPSC

Which method in C# is used to sort the elements of an array in ascending order?

Question 9 of 40
★ FPSC ★ PPSC

What does the 'Length' property of an array in C# return?

Question 10 of 40
★ FPSC ★ PPSC

What is the correct way to declare an array of strings with 5 elements in C#?

Question 11 of 40
★ FPSC ★ PPSC

How do you access the last element of an array named 'values' in C#?

Question 12 of 40
★ FPSC ★ PPSC

Which of the following methods is used to concatenate strings in C#?

Question 13 of 40
★ FPSC ★ PPSC

What is the result of the following code in C#: string[] fruits = {"Apple", "Banana", "Orange"}; Console.WriteLine(fruits[1]);

Question 14 of 40
★ FPSC ★ PPSC

Which method in C# is used to find the index of a specific element in an array?

Question 15 of 40
★ FPSC ★ PPSC

What is the correct way to declare and initialize a jagged array in C#?

Question 16 of 40
★ FPSC ★ PPSC

Which of the following statements is true regarding strings in C#?

Question 17 of 40
★ FPSC ★ PPSC

In C#, which keyword is used to declare an array?

Question 18 of 40
★ FPSC ★ PPSC

What is the correct syntax to initialize an array in C#?

Question 19 of 40
★ FPSC ★ PPSC

What is the index of the first element in an array in C#?

Question 20 of 40
★ FPSC ★ PPSC

Which method is used to find the length of an array in C#?

Question 21 of 40
★ FPSC ★ PPSC

In C#, what is the default value of an uninitialized element in an integer array?

Question 22 of 40
★ FPSC ★ PPSC

What is the correct way to access the third element in an array named numbers in C#?

Question 23 of 40
★ FPSC ★ PPSC

What is the correct way to declare a string array named colors with three elements in C#?

Question 24 of 40
★ FPSC ★ PPSC

In C#, which method is used to copy elements from one array to another?

Question 25 of 40
★ FPSC ★ PPSC

What is the result of the expression string[] names = {"John", "Alice", "Bob"}; in C#?

Question 26 of 40
★ FPSC ★ PPSC

What is the correct way to access the length of an array named numbers in C#?

Question 27 of 40
★ FPSC ★ PPSC

What is the correct way to declare a jagged array in C#?

Question 28 of 40
★ FPSC ★ PPSC

In C#, which method is used to sort the elements of an array?

Question 29 of 40
★ FPSC ★ PPSC

What is the correct syntax to declare a multidimensional array in C#?

Question 30 of 40
★ FPSC ★ PPSC

What does the Split() method do when applied to a string in C#?

Question 31 of 40
★ FPSC ★ PPSC

In C#, which method is used to convert an array to a string representation?

Question 32 of 40
★ FPSC ★ PPSC

What is the correct way to access the last element in an array named numbers in C#?

Question 33 of 40
★ FPSC ★ PPSC

Which method is used to concatenate two or more strings in C#?

Question 34 of 40
★ FPSC ★ PPSC

What is the correct syntax to declare a 2D array with 3 rows and 4 columns in C#?

Question 35 of 40
★ FPSC ★ PPSC

What is the result of the expression string[] fruits = {"Apple", "Banana", "Orange"}; in C#?

Question 36 of 40
★ FPSC ★ PPSC

In C#, which method is used to find the index of the first occurrence of a specified value in an array?

Question 37 of 40
★ FPSC ★ PPSC

What is the correct way to declare and initialize a string array with three elements in C#?

Question 38 of 40
★ FPSC ★ PPSC

In C#, what is the correct way to access the length of a string named text?

Question 39 of 40
★ FPSC ★ PPSC

What does the IndexOf() method return if the specified value is not found in an array in C#?

Question 40 of 40
★ FPSC ★ PPSC

What is the purpose of the Reverse() method when applied to an array in C#?

✓ Link copied to clipboard
Continue Your Practice

Advance Html — Part 1

Master the next curriculum module with 40 exam-standard MCQs.

Next Practice Set →

💡 Examiner's Advisory for Programming & Software Development

In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.

More Modules in Programming & Software Development

View All →
📚

Study Guides

Topic summaries and syllabus breakdown

Explore Guides →
🎯

Complete Library

Search through 78,000+ verified MCQs

Browse Library →
📱

Mobile App

Offline mock tests and instant bookmarks

Get Mobile App →