unitii

12
F.E Unit II: Programming Languages Low Level Languages (Assembly & M/C Lang.) Q 1. Low level languages are ______ . A Machine level language B Assembly level language C High level language D Both A and B Q 2. The language that the computer can understand and execute is called A Low-level machine language B High-level language C Assembly Language D None of the above Q 3. The Assembly languages are machine dependent languages. Validate this statement. A The statement is correct B The statement is wrong C The statement is partially correct D None of above options is applicable Q 4. ___________ is the quality of a Machine Language. A Machine Independent B Difficult to Program C Easy to modify D Not easily understood by the computer Q 5. Which language gives instructions that are executed by a computer? A symbolic B High-level C Machine D Middle-level Q 6. Machine language is _____ . A the language in which the machine can uderstood the program B is the only language understood by the computer C differs from one type of computer to another

Upload: abhijith-suboyin

Post on 22-Mar-2016

212 views

Category:

Documents


0 download

DESCRIPTION

Low Level Languages (Assembly & M/C Lang.) F.E Unit II: Programming Languages Q 1. What is the limitation of high level language? A Lower efficiency B Machine dependent C Machine level coding D None of the above Q 2. Which of the following is not a High Level language? A ‘C’ High Level Languages F.E Unit II: Programming Languages F.E Unit II: Programming Languages C F.E Unit II: Programming Languages

TRANSCRIPT

Page 1: UnitII

F.E Unit II: Programming Languages

Low Level Languages (Assembly & M/C Lang.)Q 1. Low level languages are ______ .A Machine level languageB Assembly level languageC High level languageD Both A and BQ 2. The language that the computer can understandand execute is calledA Low-level machine languageB High-level languageC Assembly LanguageD None of the aboveQ 3. The Assembly languages are machine dependentlanguages. Validate this statement.A The statement is correctB The statement is wrongC The statement is partially correctD None of above options is applicableQ 4. ___________ is the quality of a Machine Language.A Machine IndependentB Difficult to ProgramC Easy to modifyD Not easily understood by the computerQ 5. Which language gives instructions that areexecuted by a computer?A symbolicB High-levelC MachineD Middle-levelQ 6. Machine language is _____ .A the language in which the machine can uderstood the programB is the only language understood by the computerC differs from one type of computer to anotherD All of theseQ 7. The Language made of streams of 0 ` s & 1 ` s iscalled as a ___________.A Symbolic languageB High level LanguageC machine LanguageD Algorithm

Page 2: UnitII

F.E Unit II: Programming Languages

Q 8. The tool used by a programmer to convert sourceprogram to machine language code is called________________________________A CompilerB Language translatorC LinkerD PreprocessorQ 9. Each line of _____________ program consists offour columns known as fieldsA Machine languageB Assembly languageC Scripting LanguageD PascalQ 10. Mnemonics are used in ________A Assembly language programB C++ programC Java programD C# programQ 11. Machine languages areA Third generation languages.B First generation languages.C Second generation languages.D None of above

High Level LanguagesQ 1. What is the limitation of high level language?A Lower efficiencyB Machine dependentC Machine level codingD None of the aboveQ 2. Which of the following is not a High Levellanguage?A ‘C’B AssemblyC C++D FORTRAN*Q 3. Which among the following is a non-structuredprogramming language ?A PascalB C language

Page 3: UnitII

F.E Unit II: Programming Languages

C FORTRAND All of the above*Q 4. A ______ is the language prefered to write a program.A MachineB AssemblyC High-levelD EnglishQ 5. Which of the following is a business oriented language?A FORTRANB PASCALC CD COBOLQ 6. Which of the following is not a procedurallanguage?A CB PASCALC FORTRAND LISPQ 7. This is a number crunching program. & still usedby scientist because the language allows variablesof any size up to the memory limit of the machine.A FORTRANB CC JAVAD ADAQ 8. ____________ is designed for Bussiness DataProccessing applications.A BASICB COBOLC FORTRAND C’ languageQ 9. This is a multi-platform language that is especiallyuseful in networkingA FORTRANB PERLC JAVAD ADAQ 10. Which of the following language is easy to debug ?A assembly languageB machine languageC all high-level languages

Page 4: UnitII

F.E Unit II: Programming Languages

D all the aboveCQ 1. Which of the following is not a keyword in C language?A forB breakC returnD mainQ 2. ` C ` is _______________________ languageA ProceduralB AssemblyC MachineD Object-orientedQ 3. Which of the following is false statement for ` C ` ?A A keyword can be used as a variables nameB variable names can contain digitsC variable name do not contain blank spaceD capital letters can be used in variables namesQ 4. F7 key is used as shortcut key in ` C ` programming for the purpose of ____ .A Tracing the 'C' ProgramB Compiling the 'C' ProgramC Editing the 'C' ProgramD None of above options is applicableQ 5. To save a file in TURBOC , we use….. A f2B f3C f3D none of themQ 6. Who invented the C Language?A Dennis RitchieB Brian Kernighan and Dennis RitchieC NewtonD EnstinQ 7. C is invented in the year______A 1972B 2008C 2000D 1976Q 8. One thousandtenty four bytes equals_____________.A 1 Megabyte

Page 5: UnitII

F.E Unit II: Programming Languages

B 1 GigabyteC 1 KilobyteD None of the aboveQ 9. The library files that come with C areA Text editors for program developmentB The compiler & linkerC Program examplesD Files that contain functions which carry out various commonly usedoperations & calculationsQ 10. Which of the following is not a character classification in the ‘C’ language?A alphabetsB charactersC digitsD graphicalQ 11. ` C ` can be used onA Only MS-DOS operating systemB Only unix operating systemC Only WINDOWS operating systemD All of the aboveQ 12. ` C ` can be used on __________platform(s).A MS-DOS operating systemB Linux operating systemC Windows operating systemD All the aboveQ 13. C programs are converted to m/c language withthe help of_______ A an editorB a compilerC An OSD none of theseQ 14. Which escape character can be used to begin anew line in ` C ` ?A \aB \bC \mD \nQ 15. What is ASCII value range for ` a ` to ` z `A 65-90B 97-122

Page 6: UnitII

F.E Unit II: Programming Languages

C 47-57D None

Q 16. Every ` C ` program is contained in a source filehaving what suffix _______.A .hB .cC .cppD .exeQ 17. There are only _______ keywords available in CA 43B 39C 32D 78Q 18. A compound statement is a group of statements included between a pair ofA double quoteB curly bracesC parenthesisD a pair of /’sQ 19. What is length of variable in c?A 44B 76C 56D 31

PASCALQ 1. Pascal programs starts with the keywordA ProgramB BeginC VarD Procedure

BasicQ 1. BASIC stand for _______ .A Beginner All Purpose Symbolic Instruction CodeB Formula translation

Page 7: UnitII

F.E Unit II: Programming Languages

C Object oriented programmingD None of theseQ 2. BASIC is _______ .A High Level LanguageB Low Level Lang.C Assembly LanguageD None of above

FortranQ 1. FORTRAN is a ......A General Purpose and Procedural LanguageB Imperative programming languageC Both a and bD None of above

LISP*Q 1. LISP isA Object orientedB List orientedC Class orientedD All of the above

Object Oriented Lang. (C++ & JAVA)Q 1. What is the correct file extention for a C++ program?A C++B C+C CPPD .CCPQ 2. ______________ programming deals with solving problems by identifiying the real world objects of the problem and the processing requirement of those objects and creating their simulations,processes and communications.A Procedure OrientedB Object OrientedC Functional programmingD Logic programming

Page 8: UnitII

F.E Unit II: Programming Languages

Q 3. Which of the following language is Object Oriented Laguage?A CB C++C LISPD COBOL

Programming LanguagesQ 1. Which of the following are characteristics of a goodprogramming language?A SafetyB SimplicityC PerformanceD All of the aboveQ 2. Which of the following factors should be considered while selecting a programming language for application development?A Nature of applicationB Ease of learning the languageC Familiarity with the languageD All A,B,CQ 3. Which of the following is not a language for computer programming?A WindowsB PascalC COBOLD All of these

Compilers, Interpreter, LinkerQ 1. Advantage(s) of interpreters over compliers are _________.A they are less complex programs than compliersB they need less memory space for execution than compliersC syntax error in a program statement is detected during processingof that statementD all of them*Q 2. The rule which governs the formation of valid statements in the sources language is called

Page 9: UnitII

F.E Unit II: Programming Languages

A Semantic ruleB Lexical ruleC Syntax ruleD None of the above

Page 10: UnitII

F.E Unit II: Programming Languages

Page 11: UnitII

F.E Unit II: Programming Languages