CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS MAINFRAME DB2 DETAILS
Question :
What is the difference between SYNONYM and ALIAS?
Category DB2 Interview Questions
Rating (4.5) By 24 users
Added on 9/9/2014
Views 179
Rate it!


Answers:

Source: CoolInterview.com

Sequence detector : A sequence detector gives an output of 1 on detecting the given sequence else the output is zero.

Ex : if the given sequence to be detected is 111
and input stream is 1 1 0 1 1 1 0 0 1 0 1 1 1 1 1
the output should be 0 0 0 0 0 1 0 0 0 0 0 0 1 1 1.

Soln:
One of the different possible ways to detect a sequence is using a Mealy type FSM.

Using the following table the State machine can be designed.
since the number of bits in the sequence 1101 is 4 we have 4 states

------------------------------------------------------
|PS | Seq detected by the state | NS/output |
| | |---------------|
| | | X=0 | X=1 |
|-----------------------------------------------------
| S1 | - | S1/0 | S2/0 |
|----------------------------------------------------|
| S2 | 1 | S1/0 | S3/0 |
|----------------------------------------------------|
| S3 | 11 | S4/0 | S3/0 |
|----------------------------------------------------|
| S4 | 110 | S1/0 | S2/1 |
|----------------------------------------------------|

when in state S4 (PS),and input(X) from the sequence is 1,the sequence "1101" has been detected once and (to find the next state select the longest "seq identified by a state" column that matches part of the sequence 1101--ie.,1 or 01 or 101 ....)the NS is S2 since the sequence detected by the state S2 is 1(in 1101- 01 or 101 ,etc are not present in the seq identified by the state column ,)
Source: CoolInterview.com



If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    What is a synonym ?
    View Answer
    What is index cardinality?
    View Answer
    What are simple, segmented and partitioned table spaces ?
    View Answer
    What is FREEPAGE and PCTFREE in TABLESPACE creation?
    View Answer
    What is an inner join, and an outer join ?
    View Answer
    What are the 4 environments which can access DB2 ?
    View Answer
    If I have a view which is a join of two or more tables, can this view be updateable?
    View Answer
    Are views updateable ?
    View Answer
    What does the sqlcode of -818 pertain to?
    View Answer
    What is sqlcode -811?
    View Answer
    What is sqlcode -922 ?
    View Answer
    What is the difference between primary key & unique index ?
    View Answer
    How many clustering indexes can be defined for a table?
    View Answer
    What is a clustering index ?
    View Answer
    What is QUIESCE?
    View Answer
    What is CHECK PENDING ?
    View Answer
    What is COPY PENDING status?
    View Answer
    When do you use the IMAGECOPY?
    View Answer
    What is IMAGECOPY ?
    View Answer
    What is REORG? When is it used?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL DB2 Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    Postage stamps purchased for Rs. 30 by business. This transaction will be recorded in: a) Purchase Book b) Cash Book c) Petty Cash Book d) Journal
    Where two aspects of a transaction are posted in the Cash Book, such an entry is called: a) Double Entry b) Debit Entry c) Credit Entry d) Contra Entry
    Rent due for the month of March will appear ________ of the cash book. a) On the receipt side b) On the payment side c) As a Contra Entry d) Nowhere
    In three column cash book, when does contra entry occurs? a) Withdrawal of cash from bank b) Payment to creditors c) Withdrawal of cash from bank for personal use d) All of the above
    Double entry in Cash Book is completed when: a) Salaries are paid by cheque b) Withdrawal of money from bank for personal use c) Deposited cash into bank d) None of these
    In petty cash book, the system followed: a) Accrual System b) Imprest System c) Cash System d) None of these
    Cheques received but deposited on the next day are recorded in: a) Cash column of the cash book b) Bank column of the cash book c) Both of these d) none of these
    What rate of commission is charged by the bank issuing the credit card: a) 1% to 3% b) 3% to 6% c) 2% to 5% d) 1% to 4%
    If the debit and credit aspects of a transaction are recorded in the cash book it is a: a) Contra Entry b) Simple Entry c) Double Entry d) Single Entry
    Small payments are recorded in a book called: a) Cash Book b) Small Payments Book c) Purchase Book d) Petty Cash Book
    Cash book is a form of: a) Trial balance b) Ledger c) Journal d) All of the above
    The balance of Petty Cash is: a) An Expense b) Revenue c) An Asset d) Liability
    Briefly define top-down and bottom-up design model ?
    What is the basis of Halstead?s complexity measure?
    Differentiate validation and verification ?
    What is structured design ?
    What is data dictionary?
    What is level-0 DFD ?
    Mentions some software analysis & design tools?
    What is software metric?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0.005859 Seconds