Explore topic-wise MCQs in Basic C.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Basic C knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the result of the following statements?

A. Compilation Error
B. Runtime Error
C. strCity array is {“Bombay”, “Ladakh”, “Kolkata”,”Tamil Nadu”}
D. strCity array is {“Bombay”, “Chennai”,”Kolkata”, “Tamil Nadu”}View Answer
Answer» E.
2.

What is wrong with the following statement?

A. static keyword missing
B. array elements should be initialized using single quotes
C. array elements should be in square brackets
D. array name should be strCities()View Answer
Answer» E.
3.

The _________ methodreturns an integer that representsthe highest subscript in the specified dimension in the array.

A. Subscript
B. GetUpperBound
C. GetSubscript
D. SubscriptOfArray
Answer» B. GetUpperBound
4.

What is the value of len in the following Visual Basic code?

A. 4
B. 0
C. 3
D. 5View Answer
Answer» B. 0
5.

The act of initializing array is also called as _______

A. Populating an array
B. Assigning array
C. Initializing
D. Factoring and array
Answer» B. Assigning array
6.

If array is of String type all values are _________ by default.

A.
B. Null
C. 0
D. Nothing
Answer» E.
7.

Data in an array can be distinguished using _______ number.

A. Reference
B. Subscript
C. Array
D. ID
Answer» C. Array
8.

Using array in a program is efficient because ________

A. It shortens the program.
B. The program compiles faster
C. Number of variables are reduced.
D. Data is accessed faster
Answer» E.
9.

When you group together related variables, the group is referred to as _________

A. Array
B. List
C. Relation
D. Variable group
Answer» B. List
10.

A simple variable, also called as a ________ variable, is one that is unrelated to any other variable in memory.

A. Changing
B. Dynamic
C. Static
D. Scalar
Answer» E.