Question
1. Static functions can access only static data.
2. Static functions cannot call instance functions.
3. It is necessary to initialize static data.
4. Instance functions can call static functions and access static data.
5. this reference is passed to static functions.
a.
1, 2, 4
b.
2, 3, 5
c.
3, 4
d.
4, 5
Posted under C# programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following statements are correct about static functions? 1. Static functions can access only static data. 2. Static functions cannot call instance...
Similar Questions
Discover Related MCQs
Q. Which of the following statements is correct about constructors?
View solution
Q. Can static procedures access instance data?
View solution
Q. How many times can a constructor be called during lifetime of the object?
View solution
Q. Which of the following statements is correct?
View solution
Q. Is it possible for you to prevent an object from being created by using zero argument constructor?
View solution
Q. Which of the following statements are correct about static functions?
View solution
Q. Which of the following statements is correct about constructors in C#.NET?
View solution
Q. Which of the following statements is correct?
View solution
Q. The this reference gets created when a member function (non-shared) of a class is called.
View solution
Q. Which of the following statements are correct?
1. Data members ofa class are by default public.
2. Data members of a class are by default private.
3. Member functions of a class are by default public.
4. A private function of a class can access a public function within the same class.
5. Member function of a class are by default private.
View solution
Q. Which of the following statements are correct about objects of a user-defined class called Sample?
1. All objects of Sample class will always have exactly same data.
2. Objects of Sample class may have same or different data.
3. Whether objects of Sample class will have same or different data depends upon a Project Setting made in Visual Studio.NET.
4. Conceptually, each object of Sample class will have instance data and instance member functions of the Sample class.
5. All objects of Sample class will share one copy of member functions.
View solution
Q. Which of the following statements is correct about classes and objects in C#.NET?
View solution
Q. Which of the following is used to define the member of a class externally?
View solution
Q. The operator used to access member function of a class?
View solution
Q. What is the most specified using class declaration ?
View solution
Q. Which of following statements about objects in “C#” is correct?
View solution
Q. “A mechanism that binds together code and data in manipulates, and keeps both safe from outside interference and misuse.In short it isolates a particular code and data from all other codes and data. A well-defined interface controls the access to that particular code and data.”
View solution
Q. Correct way of declaration of object of the following class is ?
class name
View solution
Q. The data members of a class by default are ?
View solution
Q. What does the following code imply ?
csharp abc;
abc = new charp();
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C# programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!