PREVIOUS YEAR SOLVED PAPERS MCQ - December 2015 Paper 3

Correct AnswerOption C
Rate difficulty Rate difficulty:
Choose a difficulty.

S → XYX X → aX|bX|λ i.e. (a + b)* Y → bbb S → (a + b)*(bbb)(a + b)* So, option (C) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption D
Rate difficulty Rate difficulty:
Choose a difficulty.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.
Found this useful?
Follow:
Language L1 is context free language as L1 = {anban|n > 0}, we can compare number of a’s before b and number of a’s after b both are equal using only one stack using push and pop function but we can not compare language L2. L2 = {an b an bn + 1|n > 0} using only one stack here we can compare all number of a’s before b and number of a’s after b both are equal using only one stack using push and pop function but we cannot compare all bn + 1 at that time. Hence, L1 is context free language and L2 is not context free language.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption A
Rate difficulty Rate difficulty:
Choose a difficulty.

Making atleast one member function as pure virtual function is the method to make abstract class. For more information on Abstract Class Refer:Pure Virtual Functions and Abstract Classes in C++ Option (A) is correct.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *

Correct AnswerOption B
Rate difficulty Rate difficulty:
Choose a difficulty.
  • Using similar operations to do similar things is Polymorphism
  • Create new classes from existing class is Inheritence.
  • Picking both operator and attributes with operations appropriate to model an object is encapsulation
  • Hiding implementation details of methods from users of objects is Abstraction
  • So, option (B) is correct.
    Cancel reply

    Your email address will not be published. Required fields are marked *


    Cancel reply

    Your email address will not be published. Required fields are marked *

    Why Practice with Avatto?
    High Quality MCQsExam-focused questions with accurate answers
    Detailed ExplanationsStep-by-step explanations to enhance learning
    Latest Exam PatternBased on updated syllabus and pattern
    Performance AnalyticsTrack performance and improve weak areas
    100% Free PracticePractice unlimited questions for free
    Boost Your PreparationAttempt mock tests, previous year papers and topic-wise quizzes.Explore All Tests →