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

An example of intermediate language is ?





✅ Correct Answer: 4

An assembly language is a





✅ Correct Answer: 1

Which of the following are language processors?





✅ Correct Answer: 4

A grammar for a programming language is a formal description of





✅ Correct Answer: 3

Which of the following is most general phase structured grammar?





✅ Correct Answer: 1

Context free language can be recognized by





✅ Correct Answer: 4

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





✅ Correct Answer: 4

The term environment in programming language semantics is said as





✅ Correct Answer: 2

Which of the following grammars are not phase structured





✅ Correct Answer: 4

A grammar will be meaningless





✅ Correct Answer: 4

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





✅ Correct Answer: 3

Context-free grammar (CFG) can be recognized by





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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; }





✅ Correct Answer: 3

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; }





✅ Correct Answer: 1

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; }





✅ Correct Answer: 2

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; }





✅ Correct Answer: 3

Which of the following is integral data type?





✅ Correct Answer: 2

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





✅ Correct Answer: 4

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; }





✅ Correct Answer: 1

A compiler can check





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 4

Which of the following is not a source error ?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

Programming languages are the tools that allow communicating between__________.





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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 ?





✅ Correct Answer: 4

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





✅ Correct Answer: 1

Programming language COBOL works best if used for





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

In high-level language COMAL, area is calculated as





✅ Correct Answer: 3

Data types are differed on basis of





✅ Correct Answer: 3

Function which is used in stepwise refinement of program is classified





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Items of data help making its structure is classified as





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

In high-level language Pascal, area is calculated as





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Size of an array is declared by





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1