Skip to main content

Visual Basic — Part 1 MCQs with Explanations

Practice high-yield Computer Science & IT MCQs on Visual Basic — Part 1 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.

Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
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
★ PPSC ★ FPSC

Who developed Visual Basic?

Question 2 of 40
★ PPSC ★ FPSC

Which of the following extension is used to represent the project file in Visual Basic?

Question 3 of 40
★ PPSC ★ FPSC

Which of the following applications can be developed using Visual Basic tool?

Question 4 of 40
★ PPSC ★ FPSC

In visual basic language what are the rules of a programming language called?

Question 5 of 40
★ PPSC ★ FPSC

In Visual Basic, if you keep a variable undeclared, it is automatically taken as. . . . . . . . data type.

Question 6 of 40
★ PPSC ★ FPSC

In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures?

Question 7 of 40
★ PPSC ★ FPSC

In Visual Basic, which of the following method converts a string to a number?

Question 8 of 40
★ PPSC ★ FPSC

String comparison in Visual basic is case-sensitive.

Question 9 of 40
★ PPSC ★ FPSC

. . . . . . . . is the default Visual Basic data type

Question 10 of 40
★ PPSC ★ FPSC

Which of the following displays the list of projects contained in the Visual Basic current solution?

Question 11 of 40
★ PPSC ★ FPSC

What will contain in txtFirst after the following Visual Basic code is executed? strName = "Penny Swanson" txtFirst.Text = strName.Remove(5)

Question 12 of 40
★ PPSC ★ FPSC

In the following Visual Basic code, what will be in msg, if str contains "visual basic"? Dim str as String Dim msg as String If str.toUpper="VISUAL BASIC" msg="VB.Net" Else msg="Not Visual Basic" EndIf

Question 13 of 40
★ PPSC ★ FPSC

What output will be returned if the following Visual Basic code is executed? strVisualBasic = "Example, VB.Net" intCharIndex = strVisualBasic.IndexOf("VB")

Question 14 of 40
★ PPSC ★ FPSC

Which of the following returns a value after performing its specific task in Visual Basic?

Question 15 of 40
★ PPSC ★ FPSC

All Code in Visual Basic is stored in the form of. . . . . . . .

Question 16 of 40
★ PPSC ★ FPSC

The . . . . . . . . is a very useful control for Visual Basic, as it is not only used to provide instructions and guides to the users, it can also be used to display outputs.

Question 17 of 40
★ PPSC ★ FPSC

when we Declaring a variable before programming start it is called as . . . . . . . . it tells Visual Basic to reserve space in memory.

Question 18 of 40
★ PPSC ★ FPSC

What happens when both the minimize box and maximize box property are set to false in Visual Basic?

Question 19 of 40
★ PPSC ★ FPSC

In Visual Basic, which of the following keyword tells the computer to pass the variable's address rather than its contents?

Question 20 of 40
★ PPSC ★ FPSC

In Visual Basic if we declare a variable without any data type by . . . . . . . .this the data type is assigned as default..

Question 21 of 40
★ PPSC ★ FPSC

Which of the following method is used to sort an array in visual basic?

Question 22 of 40
★ PPSC ★ FPSC

Which of the following instruction tells the computer to close the current form in Visual Basic?

Question 23 of 40
★ PPSC ★ FPSC

Which of the following is used to write a stream of characters in Visual Basic?

Question 24 of 40
★ PPSC ★ FPSC

Which of the following is the default name assigned to the label control in Visual Basic?

Question 25 of 40
★ PPSC ★ FPSC

You can eliminate the problems of implicit type conversion, with the help of . . . . . . . .

Question 26 of 40
★ PPSC ★ FPSC

The . . . . . . . . constant instructs the computer to advance the insertion point to the next line in control.

Question 27 of 40
★ PPSC ★ FPSC

The . . . . . . . . operator is commonly used to determine whether a number is even or odd.

Question 28 of 40
★ PPSC ★ FPSC

. . . . . . . . operator reverses the truth value of the operation.

Question 29 of 40
★ PPSC ★ FPSC

A variable is scoped to a global or local variable depending on how it is declared.

Question 30 of 40
★ PPSC ★ FPSC

A procedure-level variable is declared using . . . . . . . . keyword.

Question 31 of 40
★ PPSC ★ FPSC

when we declare the variable in . . . . . . . . of VB then it is public variable

Question 32 of 40
★ PPSC ★ FPSC

The position of an item in a list box depends on the value stored in the list box's . . . . . . . .

Question 33 of 40
★ PPSC ★ FPSC

The . . . . . . . . validator is used to compare an entry with a constant value or the property stored in a control.

Question 34 of 40
★ PPSC ★ FPSC

The . . . . . . . . in a pattern represents one character only.

Question 35 of 40
★ PPSC ★ FPSC

Which is used to check both the conditions in a given if statement?

Question 36 of 40
★ PPSC ★ FPSC

A label control's . . . . . . . . property determines whether the control automatically sizes to fit its current contents.

Question 37 of 40
★ PPSC ★ FPSC

When the . . . . . . . . is checked, its value is set to 1 and when it is unchecked, the value is set to 0.

Question 38 of 40
★ PPSC ★ FPSC

Which event occurs each time an interval is elapsed in the timer?

Question 39 of 40
★ PPSC ★ FPSC

Selection structures that can select from many alternatives are known as . . . . . . . .

Question 40 of 40
★ PPSC ★ FPSC

StretchImage Property is present in which dialog box?

✓ Link copied to clipboard
Continue Your Practice

Advanced Mapreduce Concepts — Part 1

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

Next Practice Set →

💡 Examiner's Advisory for Computer Science & IT

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 Computer Science & IT

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 →