{"subject": "Management", "topic": "Research Methodology", "question": "Who was the author of the book named \"Methods in Social Research\"?", "options": ["Kerlinger", "CR Kothari", "Goode and Hatt", "Wilkinson"], "correct": 3, "explanation": "The book named \"Methods in Social Research\" was authored by Goode and Hatt on Dec 01, 1952, which was specifically aimed to improve student's knowledge as well as response skills.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the major attribute of Correlation Analysis?", "options": ["Association among variables", "Difference among variables", "Regression among variables", "Variations among variables"], "correct": 1, "explanation": "Mainly the correlational analysis focus on finding the association between one or more quantitative independent variables and one or more quantitative dependent variables.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the name of the conceptual framework in which the research is carried out?", "options": ["Research hypothesis", "Synopsis of Research", "Research paradigm", "Research design"], "correct": 4, "explanation": "A conceptual framework can be understood as a Research design that you require before research.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the main role of research in education?", "options": ["To upsurge one's social status.", "To increase one's job prospects.", "To augment one's personal growth.", "To help an applicant in becoming a renowned educationalist."], "correct": 4, "explanation": "Educational research can be defined as an assurance for reviewing and improving educational practice, which will result in becoming a renowned educationalist.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which of the following features are considered as critical in qualitative research?", "options": ["Collecting data with the help of standardized research tools.", "Design sampling with probability sample techniques.", "Collecting data with bottom-up empirical evidence.", "Gathering data with top-down schematic evidence."], "correct": 3, "explanation": "In qualitative research, we use an inductive methodology that starts from particular to general. In other words, we study society from the bottom, then move upward to make the theories.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "How is random sampling helpful?", "options": ["Reasonably accurate", "An economical method of data collection", "Free from personal biases", "All of the above"], "correct": 4, "explanation": "In random sampling, for each element of the set, there exist a possibility to get selected.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "A research intends to explore the result of possible factors for the organization of effective mid-day meal interventions. Which research method will be most appropriate for this study?", "options": ["Descriptive survey method", "Historical method", "Ex-post facto method", "Experimental method"], "correct": 3, "explanation": "Mainly in the ex-post facto method, the existing groups with qualities are compared on some dependent variable. It is also known as quasi-experimental for the fact that instead of randomly assigning the subjects, they are grouped on the basis of a particular characteristic or trait.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Tippit table refers to as _________", "options": ["Table of random digits", "The table used in sampling methods", "The table used in statistical investigations", "All of the above"], "correct": 4, "explanation": "Tippit table was first published by L.H.C Tippett in 1927.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "In order to pursue the research, which of the following is priorly required?", "options": ["Developing a research design", "Formulating a research question", "Deciding about the data analysis procedure", "Formulating a research hypothesis"], "correct": 2, "explanation": "Before starting with research, it is necessary to have a research question or a topic because once the problem is identified, then we can decide the research design.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The format of thesis writing is the same as in", "options": ["Writing of Seminar representation", "Preparation of research paper/article", "A research dissertation", "Presenting a workshop/conference paper"], "correct": 3, "explanation": "The format of thesis writing is similar to that of a research dissertation, or we can simply say that dissertation is another word for a thesis.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following statements is false in the context of participatory research?", "options": ["It recognizes knowledge as power", "It is a collective process of inquiry", "It emphasizes people as experts", "Its sole purpose is the production of knowledge"], "correct": 4, "explanation": "Participatory action research is a kind of research that stresses participation and action.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following statement is true in the context of the testing of hypotheses?", "options": ["It is only the alternative hypotheses that can be tested.", "It is only the null hypotheses that can be tested.", "Both the alternative and the null hypotheses can be tested.", "Both the alternative and the null hypotheses cannot be tested."], "correct": 2, "explanation": "Hypotheses testing evaluates its plausibility by using sample data.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What are the conditions in which Type-I error occurs?", "options": ["The null hypotheses get accepted even if it is false", "The null hypotheses get rejected even if it is true", "Both the null hypotheses as well as alternative hypotheses are rejected", "None of the above"], "correct": 2, "explanation": "The Type-I Error can be defined as the first kind of error.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Research and Development become the index of development of the country. Which of the following reasons are true with regards to this statement?", "options": ["R&D targets human development", "R&D can enhance people's standard of living in the country", "R&D reflects the actual economic and social conditions being prevailed in the country", "All the above"], "correct": 4, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What does the longitudinal research approach actually deal with?", "options": ["Long-term research", "Short-term research", "Horizontal research", "None of the above"], "correct": 1, "explanation": "In general, the longitudinal approach is long-term research in which the researchers keep on examining similar individuals to detect if any change has occurred over a while.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What do you understand by the term \"Anusandhan\"?", "options": ["Goal-oriented", "Following an aim", "Attaining an aim", "Praying to achieve an aim"], "correct": 2, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Evaluation Research is concerned with __________", "options": ["How well are we doing?", "Why are we doing?", "What are we doing?", "None of the above"], "correct": 1, "explanation": "Instead of focusing on the process, the evaluation research measures the consequences of the process, for example, if the objectives are met or not.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which of the following does not correspond to characteristics of research?", "options": ["Research is not passive", "Research is systematic", "Research is not a problem-oriented", "Research is not a process"], "correct": 4, "explanation": "Research is an inspired and systematic work that is undertaken by the researchers to intensify expertise.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which of the following options are the main tasks of research in modern society?", "options": ["To learn new things", "To keep pace with the advancement in knowledge", "To systematically examine and critically analyze the investigations/sources with the objective", "All of the above"], "correct": 4, "explanation": "Research is an inspired and systematic work that is undertaken by the researchers to intensify expertise.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the main aim of interdisciplinary research?", "options": ["To over simplify the problem of research", "To bring out the holistic approach to research", "To create a new trend in research methodology", "To reduce the emphasis on a single subject in the research domain"], "correct": 2, "explanation": "Particularly in interdisciplinary research, it combines two or more hypothetical disciplines into one activity.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The main aim of the scientific method in the research field is to _________", "options": ["Improve data interpretation", "Confirm triangulation", "Introduce new variables", "Eliminate spurious relations"], "correct": 4, "explanation": "Scientific research aims to build knowledge by hypothesizing new theories and discovering laws.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "A researcher is interested in studying the prospects of a particular political party in an urban area. So, what tool should he prefer for the study?", "options": ["Rating Scale", "Interview", "Questionnaire", "Schedule"], "correct": 3, "explanation": "Since it is an urban area, so there is a probability of literacy amongst a greater number of people. Also, there would be numerous questions over the ruling period of a political party, which cannot be simply answered by rating. The rating can only be considered if any political party has done some work, which is why the Questionnaire is used.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The conclusions/findings of which type of research cannot be generalized to other situations?", "options": ["Casual Comparative Research", "Historical Research", "Descriptive Research", "Experimental Research"], "correct": 2, "explanation": "One cannot generalize historical research in the USA, which has been done in India.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "How to judge the depth of any research?", "options": ["By research title", "By research duration", "By research objectives", "By total expenditure on research"], "correct": 3, "explanation": "Research objectives concisely demonstrate what we are trying to achieve through the research.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Who can successfully conduct Research?", "options": ["Someone who is a hard worker", "Possesses post-graduation degree", "Has studied research methodology", "Possesses thinking and reasoning ability"], "correct": 3, "explanation": "Anyone who has studied the research methodology can undergo the research.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which of the following is not the method of Research?", "options": ["Survey", "Historical", "Observation", "Philosophical"], "correct": 3, "explanation": "Mainly the research method comprises strategies, processes or techniques that are being utilized to collect the data or evidence so as to reveal new information or create a better understanding of a topic.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "A research problem is feasible only when", "options": ["It has utility and relevance", "It is new and adds something to knowledge", "It is researchable", "All of the above"], "correct": 4, "explanation": "A research problem can be defined as a statement about the area of interest, a condition that is required to be improved, a difficulty that has to be eradicated, or any disquieting question existing in scholarly literature, in theory, or in practice that points to be solved.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Circle graphs are used to show", "options": ["How is one part related to other parts?", "How various sections share in the whole?", "How is one whole related to another whole?", "How are various parts related to the whole?"], "correct": 4, "explanation": "A circle graph helps in visualizing information as well as the data.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Authenticity of a research finding is its", "options": ["Validity", "Objectivity", "Originality", "All of the above"], "correct": 2, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one is called non-probability sampling?", "options": ["Quota sampling", "Cluster sampling", "Systematic sampling", "Stratified random sampling"], "correct": 1, "explanation": "In non-probability sampling, all the members do not get an equal opportunity to participate in the study.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What does a good thesis involve? a) Reducing punctuations as well as grammatical errors to minimalist b) Correct reference citations c) Consistency in the way of thesis writing d) Well defined abstract Select the answers from the codes given below:", "options": ["b), c) and d)", "a), b), c) and d)", "a), b) and c)", "a), b) and d)"], "correct": 2, "explanation": "All of the above.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following statements is correct in context to research? a) Research refers to a series of systematic activity or activities undertaken to find out the solution to a problem. b) It is a systematic, logical and unbiased process wherein verification of hypotheses, data analysis, interpretation and formation of principles can be done. c) It is an intellectual inquiry or quest towards truth, d) It enhances knowledge. Select the correct answer from the codes given below:", "options": ["a), b), c) and d)", "a), b) and c)", "b), c) and d)", "a), c) and d)"], "correct": 1, "explanation": "All of the above.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "On what basis did Jean Piaget give his theory of cognitive development of humans?", "options": ["Evaluation Research", "Fundamental Research", "Applied Research", "Action Research"], "correct": 2, "explanation": "Jean Piaget, in his cognitive-developmental theory, proposed the idea that children can actively construct knowledge simply by exploring and manipulating the world around them.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What are the core elements of a dissertation?", "options": ["Introduction; Data Collection; Data Analysis; Conclusions and Recommendations", "Executive Summary; Literature Review; Data Gathered; Conclusions; Bibliography", "Research Plan; Research Data; Analysis; References", "Introduction; Literature Review; Research Methodology; Results; Discussions and Conclusions"], "correct": 4, "explanation": "The core elements of the dissertation are as follows:Introduction; Literature Review; Research Methodology; Results; Discussions and Conclusions", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "\"Sampling Cases\" can be defined as", "options": ["Sampling using a sampling frame", "Identifying people who are suitable for research", "Literally the researcher's brief case", "A sampling of people, newspapers, television programs etc."], "correct": 4, "explanation": "In general, sampling in case study research involves decisions made by the researchers regarding the strategies of sampling, the number of case studies, and the definition of the unit of analysis.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which technique is generally followed when the population is finite?", "options": ["Systematic Sampling Technique", "Purposive Sampling Technique", "Area Sampling Technique", "None of the above"], "correct": 1, "explanation": "Systematic sampling can be understood as a probability sampling method in which the members of the population are selected by the researchers at a regular interval.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Research problem is selected from the standpoint of", "options": ["Social relevance", "Financial support", "Researcher's interest", "Availability of relevant literature"], "correct": 1, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The F-test:", "options": ["Is essentially a two-tailed test.", "Is essentially a one-tailed test.", "Can be one-tailed as well as two-tailed depending on the hypotheses.", "Can never be one tailed test."], "correct": 3, "explanation": "An F-test corresponds to a statistical test in which the test statistic has an F-distribution under the null hypothesis.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following is the most comprehensive source of population data?", "options": ["Census", "National Sample Surveys", "Demographic Health Surveys", "National Family Health Surveys"], "correct": 1, "explanation": "Census is an official survey that keeps track of the population data.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The process not needed in experimental research is", "options": ["Controlling", "Observation", "Reference collection", "Manipulation and replication"], "correct": 2, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What are those conditions where a research problem is not viable?", "options": ["It is new and adds something to knowledge", "It can be researched", "It has utility and relevance", "It contains dependent and independent variables"], "correct": 4, "explanation": "A research problem can be defined as a statement about the concerned area, a condition needed to be improved, a difficulty that has to be eliminated, or a troubling question existing in scholarly literature, in theory, or in practice pointing towards the need of delivering a deliberate investigation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "How can we enhance the research objective?", "options": ["By making it more valid", "By making it more reliable", "By making it more impartial", "All of the above"], "correct": 4, "explanation": "The research objectives must be concisely described before starting the research as it illustrates what we are going to achieve as an end result after the accomplishment.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Action-research can be understood as ___________", "options": ["A longitudinal research", "An applied research", "A kind of research being carried out to solve a specific problem", "All of the above"], "correct": 3, "explanation": "In general, action research is termed as a philosophy or a research methodology, which is implemented in social sciences.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "On what basis can one formulate the assumptions?", "options": ["The cultural background of the country", "Universities", "Some specific characteristics of castes", "All of the above"], "correct": 1, "explanation": "An assumption can be identified as an unexamined belief, which we contemplate without even comprehending it. Also, the conclusions that we draw are often based on assumptions.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following falls under the category of research development?", "options": ["Descriptive Research", "Philosophical Research", "Action Research", "All of the above"], "correct": 4, "explanation": "No explanation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the use of Factorial Analysis?", "options": ["For setting the hypotheses", "To understand the difference between two variables", "To understand the relationship between two variables", "To understand the difference between various variables"], "correct": 2, "explanation": "Factor analysis can be understood as a statistical method that defines the variability between two variables in terms of factors, which are nothing but unobserved variables.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "What is the best-suited name for a process that doesn't necessitate experimental research?", "options": ["Manipulation", "Controlling", "Content analysis", "Observation"], "correct": 1, "explanation": "In an experimental research design, whenever the independent variables (i.e., treatment variables or factors) decisively get altered by researchers, then that process is termed as an experimental manipulation.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following variables cannot be expressed in quantitative terms?", "options": ["Numerical Aptitude", "Marital Status", "Socio-economic Status", "Professional Attitude"], "correct": 4, "explanation": "A professional attitude is an ability that inclines you to manage your time, portray a leadership quality, make you self-determined and persistent.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "The \"Sociogram\" technique is used to study _________", "options": ["Vocational Interest", "Human Relations", "Professional Competence", "Achievement Motivation"], "correct": 2, "explanation": "The term sociogram can be defined as a graphical representation of human relation that portrays the social links formed by one particular person.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "Management", "topic": "Research Methodology", "question": "Which one among the following phrases does not correspond to the meaning of research as a process?", "options": ["Problem Solving", "Trial and Error", "Objective Observation", "Systematic Activity"], "correct": 3, "explanation": "The research process comprises classifying, locating, evaluating, and investigating the data, which is required to support your research question, followed by developing and expressing your ideas.", "source_url": "https://www.tpointtech.com/research-methodology-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "#include<userdefined.h> Which of the following is the correct syntax to add the header file in the C++ program?", "options": ["#include<userdefined>", "#include \"userdefined.h\"", "<include> \"userdefined.h\"", "Both A and B"], "correct": 4, "explanation": "To include the herder files in the C++ program user can use any of the following given syntax.#include <Filename.h>", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct syntax to print the message in C++ language?", "options": ["cout <<\"Hello world!\";", "Cout << Hello world! ;", "Out <<\"Hello world!;", "None of the above"], "correct": 1, "explanation": "To print the message in the C++ language user can use the following syntax:#include <iostream>\r\nusing namespace std;\r\nint main() {\r\n cout << \"Hello World!\";\r\n cout << \"I am learning C++\";\r\n return 0;\r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct identifier?", "options": ["$var_name", "VAR_123", "varname@", "None of the above"], "correct": 2, "explanation": "There are some certain rules that must be followed by the users while writing the identifiers.It may contain uppercase/lowercase letters, digits, and underscore (_) only.It always starts only with non-digit characters.It should not contain any special characters like $, @etc", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the address operator?", "options": ["@", "#", "&", "%"], "correct": 3, "explanation": "To print the address of any variable, a user can use the \"&\" operator. To understand it more clearly, consider the following example:#include <iostream>\r\n#include<conio.h>\r\nusing namespace std;\r\nint main() {\r\n // Declare Variables\r\n int a;\r\n int *pt;\r\n cout << \"C++ Pointer Example Program : Print Pointer Address\\n\";\r\n a = 10;\r\n pt = &a;\r\n cout << \"\\n[a ]:Value of A = \" << a;\r\n cout << \"\\n[*pt]:Value of A = \" << *pt;\r\n cout << \"\\n[&a ]:Address of A = \" << &a;\r\n cout << \"\\n[pt ]:Address of A = \" << pt;\r\n cout << \"\\n[&pt]:Address of pt = \" << &pt;\r\n cout << \"\\n[pt ]:Value of pt = \" << pt;\r\n getch();\r\n return 0;\r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following features must be supported by any programming language to become a pure object-oriented programming language?", "options": ["Encapsulation", "Inheritance", "Polymorphism", "All of the above"], "correct": 4, "explanation": "There is nothing that forces a user to use the OOP concept in C++. In contrast, it is necessary for a programming language that it must support all three features as encapsulation, inheritance, and polymorphism completely to become a pure Object-Oriented Language.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "The programming language that has the ability to create new data types is called___.", "options": ["Overloaded", "Encapsulated", "Reprehensible", "Extensible"], "correct": 4, "explanation": "A language that can generate the new data types is known as the extensible languages as they can handle the new data types.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the original creator of the C++ language?", "options": ["Dennis Ritchie", "Ken Thompson", "Bjarne Stroustrup", "Brian Kernighan"], "correct": 3, "explanation": "Bjarne Stroustrup creates C++ language during 1997 at AT&T Bell Labs.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct syntax to read the single character to console in the C++ language?", "options": ["Read ch()", "Getline vh()", "get(ch)", "Scanf(ch)"], "correct": 3, "explanation": "The \"cin.get()\" is one of the several functions provided in C++ language that is used to read the single or multiple characters to console.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statements is correct about the formal parameters in C++?", "options": ["Parameters with which functions are called", "Parameters which are used in the definition of the function", "Variables other than passed parameters in a function", "Variables that are never used in the function"], "correct": 1, "explanation": "Parameters that are used in the body of the function are known as formal parameters. These parameters represent the parameters passed to the function and are only used inside the function's body.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "The C++ language is ______ object-oriented language.", "options": ["Pure Object oriented", "Not Object oriented", "Semi Object-oriented or Partial Object-oriented", "None of the above"], "correct": 3, "explanation": "The common thing about the Pure Object-oriented language it provides three basic features like Inheritance, Encapsulation, and Polymorphism. Each programming language that supports these entire three features is known as the Pure-Object oriented language. Whereas if a programming language support all these three features but not support completely are known as the Partial-Object oriented languages or the Semi Object-oriented languagesThe main reasons why the C++ programming language is Known as Semi-Object oriented language are as follows:Availability of the Friend function- A friend class is allowed to access private and protected members of another class, within which it is declared a friend. It may be very useful for some time, but still, it violates the rule of the Object-Oriented features.Concept of the Global variable- As we all know that we can declare a global variable in C++ language that can be easily accessible from anywhere within the program. So again, C++ does not provide complete privacy because no one is restricted to access and manipulate that data/information. Hence it offers partial Encapsulation, unlike Java Language, in which a user only allows to declare a variable within the class and can provide access specifier to it.The main function is Out-side the class- C++ is an object-oriented language, but still, object-oriented is not fundamentally related (or implicit) to the language. So a user can easily write a valid, well-defined C++ code even without using any object once.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following features is required to be supported by the programming language to become a pure object-oriented programming language?", "options": ["Encapsulation", "Inheritance", "Polymorphism", "All of the above"], "correct": 4, "explanation": "There is nothing that forces a user to use the OOP concept in C++. In contrast, it is necessary for a programming language that it must support all three features of Encapsulation, Inheritance, and Polymorphism completely to become a Pure Object-Oriented Language.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following comment syntax is correct to create a single-line comment in the C++ program?", "options": ["//Comment", "/Comment/", "Comment//", "None of the above"], "correct": 1, "explanation": "To create a single line comment (or one-line comment) in C++ program one can use the \"// write comment\" syntax. We can understand it more easily with the help of following given Program:Example#include <stdio.h> \r\nint main(void) \r\n{ \r\n // This is a single line comment \r\n // Welcome user comment \r\n printf(\"Welcome to Javatpoint\"); \r\n return 0; \r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "C++ is a ___ type of language.", "options": ["High-level Language", "Low-level language", "Middle-level language", "None of the above"], "correct": 3, "explanation": "C++ contains the features of both types of high and Low-level programming languages, and it is also not wrong if we call it the combination of both high and low-level languages.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "For inserting a new line in C++ program, which one of the following statements can be used?", "options": ["\\n", "\\r", "\\a", "None of the above"], "correct": 1, "explanation": "To insert a new line or to jump on to the next line, one can use the \"\\n.\" In c++, there is also an alternative is available that is \" endl,\" which is also used for breaking a line in the output. Let see the example of both the \"\\n\" and \"endl.\"Example: Using \"\\n.\"#include <iostream>\r\nusing namespace std;\r\nint main() {\r\n cout << \"Hello World! \\n\\n\";\r\n cout << \"I am learning C++\";\r\n return 0;\r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which one of the following represents the tab?", "options": ["\\n", "\\t", "\\r", "None of the above"], "correct": 2, "explanation": "The \"\\t\" is a type of space sequence representing the tab, which means a set of blank space adds to the line. To understand it more clearly, consider the following example:Program#include<iostream>\r\nusing namespace std;\r\nint main()\r\n{\r\nint a,b;\r\ncout<<\"Enter the first number\\t\";\r\ncin>>a;\r\ncout<<\"Enter the second number\\t\";\r\ncin>>b;\r\nif(a>b)\r\ncout<<\"Greatest number is\\t\"<<a;\r\nelse\r\ncout<<\"Greatest number is\\t\"<<b;\r\nreturn 0;\r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following refers to characteristics of an array?", "options": ["An array is a set of similar data items", "An array is a set of distinct data items", "An array can hold different types of datatypes", "None of the above"], "correct": 1, "explanation": "Basically, an array is a set of similar data items that are stored in the contiguous memory blocks. You can access any data item randomly using the index address of the element s.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "If we stored five elements or data items in an array, what will be the index address or the index number of the array's last data item?", "options": ["3", "5", "4", "88"], "correct": 3, "explanation": "The array uses the contiguous block of memory for storing the data elements. Hence the data items pushed into an array are stored at the continuous address space. The index number of the array begins with zero so, the first data item pushed into the array will be stored at zero and so on. Hence index number of the last (fifth) element will be 4.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct syntax for declaring the array?", "options": ["init array []", "int array [5];", "Array[5];", "None of the above"], "correct": 2, "explanation": "To declare an array in C++, we first need to specify its data type according to requirements such as int or char, afterward that the array's name and the size of the array. So the correct answer will be B.Example: Array declaration by specifying size and initializing elements\r\nint arr[8] = { 10, 20, 30, 40 };The compiler will create an array of size 8, initializes the first four elements as specified by the user and rest elements as 0The above is just same as\r\n\"int arr[] = {11, 22, 32, 44, 0, 0,0,0}\".", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct syntax for printing the address of the first element?", "options": ["array[0];", "array[1];", "array[2];", "None of the above"], "correct": 1, "explanation": "To print or access the first data item of the array, the correct syntax is \"array[0];\" because the array's index begins with zero instead of one. So the correct answer will be A.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following gives the 4th element of the array?", "options": ["Array[0];", "Array[0];", "Array[3];", "None of the above"], "correct": 3, "explanation": "The index of the array begins with zero instead of 1. To print the 4th element of the array, the index number will be n-1 or (3);", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "What is the output of the given program? #include < stdio.h >\r\nusing namespace std;\r\nint main()\r\n{\r\nint array[] = {10, 20, 30};\r\ncout << -2[array];\r\nreturn 0;\r\n}\n\n```\n#include < stdio.h >\r\nusing namespace std;\r\nint main()\r\n{\r\nint array[] = {10, 20, 30};\r\ncout << -2[array];\r\nreturn 0;\r\n}\n```", "options": ["-15", "-30", "Compiler error", "Garbage value"], "correct": 2, "explanation": "It will print the negative value of the specified values because the \"-\" sign we used while specifying the array elements. So the correct answer will be the \"-30\".", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which type of memory is used by an Array in C++ programming language?", "options": ["Contiguous", "None-contiguous", "Both A and B", "Not mentioned"], "correct": 1, "explanation": "In the C and C++ programming language, the memory used by an array is usually contiguous, which means when an array is declared or initialized in the program a block of memory is selected form the memory space immediately. The major drawback of an array is that users have to guess the size of the array before actually using it, in which a significant amount of memory will be occupied even when it is not used. This later creates the problem of lack of memory.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is the correct definition of sorting?", "options": ["Sorting is a type of process in which the data or information is ordered into a specific order. Example increasing orders, decreasing.", "Sorting information or data only in increasing order", "Sorting is a type of process in which data elements are modified or manipulated", "None of the above"], "correct": 1, "explanation": "Sorting is a type of technique or process in which the locations of data elements hold by the array are reordered or manipulated. So the correct answer will be A.For ExampleUn-sorted Array4321567Sorted Array1234567", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "How many types of the array are there in the C++ programming language?", "options": ["In the C++ programming language, there are three types of arrays", "In the C++ programming language, there are four types of arrays", "In the C++ programming language, there are two types of arrays", "Both A and B"], "correct": 3, "explanation": "In the C++ programming language, there are mainly two types of arrays that are Single Dimension arrays and Multi-Dimension arrays. In Single-Dimension arrays, the same types of values are hold in the form of a List, while on the other hand, in Multi-Dimension arrays; values are stored in the form of a matrix.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "In C++, for what purpose the \"rank()\" is used?", "options": ["It returns the size of each dimension", "It returns the maximum number of elements that can be stored in the array", "It returns the dimension of the specified array", "None of the above"], "correct": 3, "explanation": "In C++, one can use the rank function where he wants to know about the dimensions( e.g., single-dimension, multi-dimension) of a specific array by just passing it to the \"rank()\" function.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which one of the following is the correct definition of the \"is_array();\" function in C++?", "options": ["It checks that the specified variable is of the array or not", "It checks that the specified array of single dimension or not", "It checks that the array specified of multi-dimension or not", "Both B and C"], "correct": 1, "explanation": "In C++, the \"is_array();\" is used for checking that the specified element or data item belongs to the array type or not.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Observer the given C++ program carefully and choose the correct output from the given options: Program #include <iostream>\r\n#include <string>\r\nusing namespace std;\r\nint main()\r\n{\r\n cout<<is_array<int>::value; // case A\r\n cout<<is_array<char[10]>::value; // case B\r\n cout<<is_array<string>::value; // case c\r\n return 0;\r\n}\n\n```\n#include <iostream>\r\n#include <string>\r\nusing namespace std;\r\nint main()\r\n{\r\n\tcout<<is_array<int>::value; // case A\r\n\tcout<<is_array<char[10]>::value; // case B\r\n\tcout<<is_array<string>::value;  // case c\r\n\treturn 0;\r\n}\n```", "options": ["110", "001", "010", "None of the above"], "correct": 3, "explanation": "The correct output will be \"010\" Because in both cases, A and C variables passed to the \"is_array()\" function are different, so the function returns zero in both cases while in the case of B, they are the same. Hence it returns one as the output.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Read the given C++ program carefully and choose the correct output from the given options: Program #include <iostream>\r\n#include <string>\r\nusing namespace std;\r\nint main()\r\n{\r\n cout<<rank<int[10]>::value; // Case A\r\n cout<<rank<char[10][10]>::value; // Case B\r\n cout<<rank<string[10][10][10]>::value; //Case C\r\n return 0;\r\n}\n\n```\n#include <iostream>\r\n#include <string>\r\nusing namespace std;\r\nint main()\r\n{\r\n\tcout<<rank<int[10]>::value; // Case A\r\n\tcout<<rank<char[10][10]>::value;   // Case B\r\n\tcout<<rank<string[10][10][10]>::value; //Case C\r\n\treturn 0;\r\n}\n```", "options": ["121", "321", "123", "010"], "correct": 3, "explanation": "As we can see in the above program, here, the \"rank()\" function is used. The \"rank()\" function is used to know about the dimensions of the passed array. In case A the array passed to the \"rank()\" function is single-dimensional, In case B, the passed array is 2-dimensional, and in case C, the array passed is three-dimensional. So the output return by the \"rank()\" function is 123.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "What did we call an array of the one-dimensional array?", "options": ["Single Dimensional array", "Multi-Dimensional array", "2D Array (or 2-Dimensional array)", "Both A and B"], "correct": 3, "explanation": "An array of one-dimensional array is known as the 2-dimensional array or 2D Array-like. We can understand it more clearly with the help of the following example:Initialization of 2-Dimensional Arrayint array[2][3]={ {3,2,5} , {9,5,4} }", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which types of arrays are always considered as linear arrays?", "options": ["Single-dimensional", "Multi-dimensional", "Both A and B", "None of the above"], "correct": 1, "explanation": "Single-dimensional arrays are always considered as linear arrays.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following can be considered as the object of an array?", "options": ["Index of an array", "Elements of the Array", "Functions of the Array", "All of the above"], "correct": 2, "explanation": "The elements in the array are known as the objects of the array.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "How many types of elements can an array store?", "options": ["Same types of elements", "Char and int type", "Only char types", "All of the above"], "correct": 1, "explanation": "An array can hold several elements except that all the data elements are of the same type.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Elements of a one-dimensional array are numbered as 0,1,2,3,4,5, and so on; these numbers are known as ____", "options": ["Subscript of Array", "Members of Array", "Index values", "Both A and C"], "correct": 4, "explanation": "The elements of one-dimensional array are indexed as 0,1,2,3,... and these numbers are also known as the index values or subscripts of the array.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statement is true about the new and malloc? I. The \"new\" is a type of operator while \"malloc\" is a kind of function II. \"new\" invokes a constructor, whereas \"malloc\" does not invoke the constructor III. \"malloc\" returns void pointer and also needed to typecast whereas \"new\" returns required the pointer", "options": ["Only I", "Both I and II", "I, II, III", "None of the above"], "correct": 3, "explanation": "All statements mentioned in the above question are completely true about the \"malloc\" and the \"new.\" The \"malloc\" is a kind of function available in the C++ language, while the \"new\" is a type of operator that invokes the Constructor.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statement is true about the new and malloc? I. The pointer object initialization of a specific class using \"malloc\" also needs to include constructor calls; on the other hand, doing so with the \"new\" keyword does not include any constructor calls. II. The pointer object initialization of a specific class using the \"new\" keyword also needs to include a constructor call. On the other hand, doing so with the \"malloc\" does not need to include any constructor calls. III. Pointer object initialization of a specific class using either \"new\" or \"malloc\" involves the constructor call.", "options": ["Only II", "Both II and III", "Only I", "None of the above"], "correct": 1, "explanation": "In object initialization of a class using the \"new\" keyword also involves a constructor call, while doing so with the \"malloc\" does not require any involvement of the constructor call. This is the main reason why the \"new\" is added explicitly in the C++ language. However, the \"malloc\" function is used to assign the memory to any specific pointer, so it assigns an equal amount of memory to the class size. At the same time, the \"new\" keyword involves the initialization, hence invokes the Constructor of that particular class.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statement is correct about Virtual Inheritance?", "options": ["It is a technique to ensure that a private member of a base class can be accessed", "It is a technique to optimize the multiple inheritances", "It is a technique to avoid the multiple inheritances of the classes", "It is a C++ technique to avoid multiple copies of the base class into the derived or child classes"], "correct": 4, "explanation": "", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which one of the following statements correctly refers to the Delete and Delete[] in C++ programming language?", "options": ["Delete is syntactically correct although, if the Delete[] is used, it will obtain an error.", "The \"Delete\" is used for deleting the standard objects, while on the other hand, the \"Delete[]\" is used to delete the pointer objects", "The \"Delete\" is a type of keyword, whereas the \"Delete[]\" is a type of identifier", "The \"Delete\" is used for deleting a single standard object, whereas the \"Delete[]\" is used for deleting an array of the multiple objects"], "correct": 4, "explanation": "The \"Delete\" is used with the single general object, while on the other hand, the \"Delete[]\" is used with the array of the multiple objects initiated with the new operator.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Consider the following given program and choose the most appropriate output from the given options: #include <iostream>\r\nusing namespace std;\r\nclass A{\r\npublic:\r\n A(){\r\n cout<<\"Constructor called\\n\";\r\n }\r\n ~A(){\r\n cout<<\"Destructor called\\n\";\r\n } \r\n};\r\nint main(int argc, char const *argv[])\r\n{\r\n A *a = new A[5];\r\n delete[] a;\r\n return 0;\r\n}\n\n```\n#include <iostream>\r\nusing namespace std;\r\nclass A{\r\npublic:\r\n\tA(){\r\n\t\tcout<<\"Constructor called\\n\";\r\n\t   }\r\n\t~A(){\r\n\t\tcout<<\"Destructor called\\n\";\r\n\t    } \r\n};\r\nint main(int argc, char const *argv[])\r\n{\r\n\tA *a = new A[5];\r\n\tdelete[] a;\r\n\treturn 0;\r\n}\n```", "options": ["Segmentation failure.", "Error.", "The Constructor will be invoked five times, and after that destructor will be invoked only once.", "The Constructor will be invoked five times, and after that destructor will also be invoked five times."], "correct": 4, "explanation": "As mentioned in the above-given program, five-pointer variables are initiated using the \"new\" keyword so that the Constructor will be invoked five times. In addition, the destructor \"Delete[]\" is used( that is used for deleting the group of the several objects) for terminating variables. Hence all of the variables will be terminated completely, and while terminating the variables, the destructor will be invoked five times.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Consider the following given program and choose the most appropriate output from the given options: #include<iostream> \r\nusing namespace std; \r\nclass Base { \r\npublic: \r\n Base() \r\n { cout<<\"Constructing Base \\n\"; } \r\n ~Base() \r\n { cout<<\"Destructing Base \\n\"; } \r\n}; \r\nclass Derived: public Base { \r\npublic: \r\n Derived() \r\n { cout<<\"Constructing Derived \\n\"; } \r\n ~Derived() \r\n { cout<<\"Destructing Derived \\n\"; } \r\n}; \r\nint main(void) \r\n{ \r\n Derived *d = new Derived(); \r\n Base *b = d; \r\n delete b; \r\n return 0; \r\n}\n\n```\n#include<iostream> \r\nusing namespace std; \r\nclass Base { \r\npublic: \r\n\tBase()\t \r\n\t{ cout<<\"Constructing Base \\n\"; } \r\n\t~Base() \r\n\t{ cout<<\"Destructing Base \\n\"; }\t \r\n}; \r\nclass Derived: public Base { \r\npublic: \r\n\tDerived()\t \r\n\t{ cout<<\"Constructing Derived \\n\"; } \r\n\t~Derived() \r\n\t{ cout<<\"Destructing Derived \\n\"; } \r\n}; \r\n \r\nint main(void) \r\n{ \r\n\tDerived *d = new Derived(); \r\n\tBase *b = d; \r\n\tdelete b; \r\n\treturn 0; \r\n}\n```", "options": ["Constructing base, Constructing Derived, Destructing Base, Destructing Derived", "Constructing base, Constructing Derived, Destructing Base", "Constructing base, Constructing Derived, Destructing Derived, Destructing Base", "None of the above"], "correct": 2, "explanation": "In the above-given program, the derived class's object is storing in the base class pointer; while the object is destroyed, the program has never invoked the destructor of the Derived class. Therefore, it shows that the object is not destroyed at all; hence, in this case, the program may also behave undesirably.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following can be considered as the correct syntax for declaring an array of pointers of integers that has a size of 10 in C++?", "options": ["int arr = new int[10];", "int *arr = new int*[10]", "int **arr = new int*[10];", "int *arr = new int[10];"], "correct": 3, "explanation": "To declare an array of integers' pointer, here we need to use the double-pointer array where every element is set of the pointer to the integers. Therefore the correct option is C.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following can be considered as the members that can be inherited but not accessible in any class?", "options": ["Public", "Protected", "Private", "Both A and C"], "correct": 3, "explanation": "The \"Private\" member of a class can be inherited by the child class. Still, the child class cannot access them (Or we can say that they are not accessible from the child class).", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following can be used to create an abstract class in the C++ programming language?", "options": ["By using the pure virtual function in the class", "By declaring a virtual function in the base class", "By declaring the virtual keyword afterward, the class Declaration", "None of the above"], "correct": 1, "explanation": "A class must contain at least one declaration of the pure virtual function in itself to be called an abstract class. Therefore to make an abstract class, one has to declare at least one pure virtual function in that class.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statements is correct about the class?", "options": ["An object is an instance of its class", "A class is an instance of its object", "An object is the instance of the data type of that class", "Both A and C"], "correct": 1, "explanation": "Generally, an object is an instance of a class, e.g., an object represents the class.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statements is correct about the friend function in C++ programming language?", "options": ["A friend function is able to access private members of a class", "A friend function can access the private members of a class", "A friend function is able to access the public members of a class", "All of the above"], "correct": 4, "explanation": "A friend function can access any member of a class without caring about the type of member it contains, such as public, private, and protected.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statement is not true about C++?", "options": ["Members of a class are public by default", "A class cannot have the private members", "A structure can have the member functions", "All of the above"], "correct": 3, "explanation": "In C, structures are not allowed to have member functions; while on the other hand, C++ allows the structure to have the member functions. Members of the class are generally private by default, and those of the structures are public. So it is a completely false statement that classes can not private members.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following given statement is completely true? I. In an object-oriented programming language, all the function calls are resolved at compile-time. II. In a procedure programming language, all the function calls are resolved at compile-time", "options": ["Only II", "Only I", "Both I & II", "None of the above"], "correct": 2, "explanation": "In a procedure programming language such as C, we do not have the concept of Polymorphism, so all function calls are resolved at the compile-time while, on the other hand, In an Object-Oriented language, through the concept of Polymorphism, all function calls cannot be resolved at the compile-time.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which one of the following cannot be used with the virtual keyword?", "options": ["Constructor", "Destructor", "Member function", "None of the above"], "correct": 1, "explanation": "In C++, we cannot use the virtual keyword with the Constructor because constructors are generally defined to initialize the object of a specific class; hence no other class requires the other class's object.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is used for implementing the late binding?", "options": ["Operator Functions", "Constant Functions", "Virtual Functions", "Both A and B"], "correct": 3, "explanation": "A virtual function can be used for implementing the concept of late binding. For example - Binding the actual functions to their corresponding calls.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statements supports that reusable code should be one of the desirable features of any language?", "options": ["It helps in reducing the maintenance cost", "It helps in reducing the testing time", "It helps in reducing both the maintenance time and testing time", "It helps in reducing the compile time"], "correct": 3, "explanation": "While reusing the existing code, we are not required to test/check that code, again and again, because it was already tested while it was written for the very first time. So the reusing the code defiantly helps in reducing the maintenance and testing time.While reusing the existing code, the compile-time most likely to be increased or remain the same, and it is obvious because we use the existing code in our program to save our time( or to include any specific functionality) by which the size of the overall program gets grows which is natural.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statement is correct about the C++ programming language?", "options": ["In C++, both the Static and Dynamic type checking are allowed", "In C++, member function are allowed to be of the type canst", "In C++, Dynamic checking is allowed", "None of the above"], "correct": 1, "explanation": "In C++, both types of static and dynamic checking are allowed.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following is not a kind of inheritance?", "options": ["Distributed", "Multiple", "Multi-level", "Hierarchal"], "correct": 1, "explanation": "Among the above options, Distributed is only, which is not a type of inheritance, while Multiple, Multi-level, and the Hierarchal are the types of inheritance.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "What will happen if \"In a C++ program a class has no name\"?", "options": ["It is not even allowed in C++", "It will not have the Constructor", "It will not have the destructor", "Both B and C"], "correct": 3, "explanation": "In the C++ program, if we use a class without assigning a name. As a result, it will not be going to have a destructor, but it will have the object. To understand it in more detail, consider the following program:Program\r\n#include \r\nusing namespace std;\r\nclass\r\n{\r\n public:\r\n void func()\r\n {\r\n cout<<\"Hello world\";\r\n }\r\n}a;\r\nint main(int argc, char const *argv[])\r\n{\r\n a.func();\r\n return 0;\r\n}", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which type of approach is used by the C++ language?", "options": ["Right to left", "Left to right", "Top to bottom", "Bottom-up"], "correct": 4, "explanation": "Generally, C++ uses the Bottom-up approach while other programming languages like C use the top-down approach.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following concept refers to adding new components to the program at the run time?", "options": ["Dynamic Loading", "Dynamic binding", "Data hiding", "Both A & B"], "correct": 3, "explanation": "The dynamic loading is referred to as the concept of adding a new component to the program as it runs.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "How can one implement the compile-time Polymorphism in the C++ programming language?", "options": ["By using the Template", "By using the concepts of inheritance", "By using both the virtual functions and inheritance", "By using only the virtual functions"], "correct": 1, "explanation": "One can easily implement the Compile-time Polymorphism using the Template.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "How can one implement the run-time Polymorphism in the C++ programming language?", "options": ["By using the Template", "By using the concepts of inheritance", "By using both the virtual functions and inheritance", "By using only the virtual functions"], "correct": 3, "explanation": "C", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following offers a programmer the facility of using a specific class object into other classes?", "options": ["Polymorphism", "Abstraction", "Inheritance", "Composition"], "correct": 4, "explanation": "The composition is referred to as the concept of using objects of a specific class into several other classes.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which one of the following cannot be a friend in C++ languages?", "options": ["A Class", "A Function", "An Object", "None of the above"], "correct": 3, "explanation": "In general, an object of any class cannot be a friend of the same and any other class as well. However, there are some functions, operator, and classes which can be made a friend.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "How are the references different from the pointer?", "options": ["A reference cannot be modified once it initialized", "There is no need of an extra operator for dereferencing of a reference", "A reference cannot be NULL", "All of the above"], "correct": 4, "explanation": "These are some basic reasons why the references are far different from the pointers.In the case of pointers \"*\" operator is required for dereferencing the value contain by it. However, the reference does not need any type of operator for deference.A Reference cannot be modified once it is initialized, but it is possible to do so in the case of a pointer.A pointer can be made Null, whereas a reference cannot be NULL.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Among the following given options, which can be considered as a member of a class?", "options": ["Class variable", "Member variable", "Class functions", "Both A and B"], "correct": 2, "explanation": "Generally, the functions of any class are also considered as the member function of that class.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following refers to the wrapping of data and its functionality into a single individual entity?", "options": ["Modularity", "Abstraction", "Encapsulation", "None of the above"], "correct": 3, "explanation": "In C++, the property of wrapping the data and its functionality into a single entity is known as Encapsulation ( e.g., Classes).", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following refers to using the existing code instead of rewriting it?", "options": ["Inheritance", "Encapsulation", "Abstraction", "Both A and B"], "correct": 1, "explanation": "With the help of the inheritance concept, one can use existing code instead of rewriting. We can do this by inheriting the properties of pre-written code in other parts of the code blocks. Therefore the user is not required to write the same code repeatedly.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Among the following, which shows the Multiple inheritances?", "options": ["X,Y->Z", "X->Y->Z", "X->Y;X->Z", "None of the above"], "correct": 1, "explanation": "In multiple inheritances, a single class can inherit properties form more than one base class.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following statements is true about the C++ programming language?", "options": ["C++ is an object-oriented programming language", "C++ is a procedural programming language", "C++ is a functional programming language", "C++ is both procedural and object-oriented language"], "correct": 4, "explanation": "C++ is a type of programming language which supports both the procedural ( or step by step instructions) and object-oriented through the concept of classes.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Among the following, which statement is correct about the Modularity?", "options": ["Modularity means hiding the parts of the program", "Modularity refers to dividing a program into subsequent small modules or independent parts", "It refers to overloading the program's part", "Modularity refers to wrapping the data and its functionality into a single entity"], "correct": 2, "explanation": "Modularity refers to dividing a program into small independent code blocks or modules so that they can be easily called anywhere in the entire program where it is required. The concept of Modularity is very efficient and helpful for developers because it makes the program well structured and easy to understand. Hence the correct option is D.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Read the following program carefully and find out which concept from the given options is not used or missing in the following program? Program class A\r\n{\r\n int x;\r\n public:\r\n void print(){cout<<\"hello\"<<x;}\r\n}\r\nclass B: public A\r\n{\r\n int y;\r\n public:\r\n void assign(int a){y = a;}\r\n}\n\n```\nclass A\r\n{\r\n    int x;\r\n    public:\r\n    void print(){cout<<\"hello\"<<x;}\r\n}\r\n \r\nclass B: public A\r\n{\r\n    int y;\r\n    public:\r\n    void assign(int a){y = a;}\r\n}\n```", "options": ["Polymorphism", "Encapsulation", "Inheritance", "Abstraction"], "correct": 1, "explanation": "As we can see in the above-given program, the variables X and Y both are private members, which means they both are hidden from the outside world of the class, so here the concept of abstraction is used.The other data members and their corresponding functions are stored in an individual class, so here the concept of Encapsulation is also used. In addition, Class B is derived from Class A, which means the concept of inheritance is used as well, but still, we didn't find and an overloaded function in any of the classes. Therefore the concept of Polymorphism is missing or not used in the given program.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
{"subject": "C++ Programming", "topic": "C++", "question": "Which of the following options correctly explains the concept of Polymorphism?\n\n```\nint func(float);\r\nfloat func(int, int, char);\n```", "options": ["int func(float);\r\nfloat func(int, int, char);", "int func(int);\r\nint func(int);", "int func(int, int);\r\nfloat func1(float, float);", "None of the above"], "correct": 1, "explanation": "The concept of Polymorphism refers to the overloading a function by changing either its number of passed arguments or changing its type. So you have only two options in which the function has named the same. Therefore one can easily find out that in option C, the type and the number of the argument all are the same, which definitely leads to an error that is wrong. However, the option in which the name of the function is the same has a different number of arguments, or different types is the correct option. So the correct answer is A.", "source_url": "https://www.tpointtech.com/cpp-mcq"}
