System programming MCQ Quiz Hub

SYSTEMS PROGRAMMING /PROGRAMMING LANGUAGES MCQ SET 1

Choose a topic to test your knowledge and improve your System programming skills

1. An example of intermediate language is ?




2. An assembly language is a




3. Which of the following are language processors?




4. A grammar for a programming language is a formal description of




5. Which of the following is most general phase structured grammar?




6. Context free language can be recognized by




7. Which is not true about syntax and semantic parts of a computer language




8. The term environment in programming language semantics is said as




9. Which of the following grammars are not phase structured




10. A grammar will be meaningless




11. Any syntactic construct that can be described by a regular expression can also be described by a




12. Context-free grammar (CFG) can be recognized by




13. Indicate which of the following is not true about 4GL?




14. The field that contains a segment index or an internal index is called




15. What will be output of the following code? #include int main(){ printf(“%d ”,sizeof(6.5)); printf(“%d ”,sizeof(90000)); printf(“%d”,sizeof(‘A’)); return 0; }




16. What will be output of the following c code? ( according to GCC compiler) #include int main(){ signed x; unsigned y; x = 10 +- 10u + 10u +- 10; y = x; if(x==y) printf(“%d %d”,x,y); else if(x!=y) printf(“%u %u”,x,y); return 0; }




17. What will be output of the following c code? #include int main(){ const int *p; int a=10; p=&a; printf(“%d”,*p); return 0; }




18. What will be output of the following c code? #include int main(){ int a= sizeof(signed) +sizeof(unsigned); int b=sizeof(const)+sizeof(volatile); printf(“%d”,a+++b); return 0; }




19. Which of the following is integral data type?




20. What will be output of the following c code? #include int main(){ volatile int a=11; printf(“%d”,a); return 0; }




21. What will be output of the following c code? #include const enum Alpha{ X, Y=5, Z }p=10; int main(){ enum Alpha a,b; a= X; b= Z; printf(“%d”,a+b-p); return 0; }




22. A compiler can check




23. In analyzing the compilation of PL/I program ,the term “lexical analysis” is associated with




24. 24. In analyzing the compilation of PL/I program,the description creation of more optimal matrix is associated with




25. Which of the following is not a source error ?




26. A main procedural program contains modules. These modules are also called____________.




27. Programming languages are the tools that allow communicating between__________.




28. The actual text used to write the instructions for a computer program is called a_______________.




29. Language which have many types, but the type of every name and expression must be calculated at compile time are




30. In some programming languages, an identifier is permitted to be a letter followed by any number of letters or digits. If L and D denotes the sets of letters and digits respectively, which of the following expressions define an identifier ?




31. In COMAL language programs, parameters after name of procedure must be put in




32. Programming language COBOL works best if used for




33. In line "110 DIM num(10)" in BASIC language, 'Line 110' declares




34. Statement "130 num(subs) = 2*subs-1" is an example of




35. In high-level language COMAL, area is calculated as




36. Data types are differed on basis of




37. Function which is used in stepwise refinement of program is classified




38. When divisions of decimals are involved in program, these numbers are stored in




39. Programming languages such as COMAL and Pascal allow subroutine which is classified as




40. Items of data help making its structure is classified as




41. A special value placed at end of items data list is called




42. A special quantity named in a program and its value can be changed is called




43. In line "550 INPUT NUM: PRINT 6.9*NUM*NUM+27" of a BASIC program, 'PRINT and INPUT' is




44. Whole numbers from '0' and all negative numbers are classified as




45. In high-level language Pascal, area is calculated as




46. In line "100 INPUT NUM" of a BASIC program, NUM is if chosen by programmer is classified as




47. Type of statement written in sequence and are repeated until conditions met is classified as




48. Size of an array is declared by




49. In repeat-until loop 'UNTIL Option>0 and Option<8 AND INT(Option) = Option' , INT function is classified as




50. Sequence of instructions that are carried out for a particular task is classified as