PREVIOUS YEAR SOLVED PAPERS MCQ - JULY 2016 Paper 2

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

Regular expression (0|∈)1+2* (3|∈) 0122, 0123, 1123, 0112, 0113, 1113, 0111, 1222, 1123, 1111, 1223, 1112; Total 12 strings of lenghth 4 are possible. So, option (D) 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 C
Rate difficulty Rate difficulty:
Choose a difficulty.
Share this question
Share:
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.
  • In loop jamming, the bodies of the two loops are merged together to form a single loop provided that they do not make any references to each other.
  • In loop concatenation, the bodies of the two loops are concatenated together to form a series of loop, loop concatenation, some times help to reduce complexity.
  • In loop unrolling, we try to optimize a program's execution speed. It is also known as space–time tradeoff.
  • In strength reduction compiler optimize expensive operations with equivalent but less expensive operations.
  • So, option (D) 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.

    Dynamic linking is used to reduce space consumption on disk and memory. It also reduce the cost of software update. But it doesn't reduce program's time complexity. 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 *

    Correct AnswerOption B
    Rate difficulty Rate difficulty:
    Choose a difficulty.
  • The grammar S → a Sb |bSa|SS|∈, where S is the only non-terminal symbol and ∈ is the null string, is ambiguous. When we will try to generate an expression then one string can be generated by more then one parse tree.
  • LALR is more powerful then SLR.
  • An LL(1) parser is a top-down parser.
  • YACC tool is an LALR(1) parser generator.
  • 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 →