An example of intermediate language is ?
1.SNOBOL
2.PASCAL
3.COBOL
4.UNCOL
Posted Date:-2022-06-07 04:13:01
Context free language can be recognized by
1.finite state automation
2. linear bounded automation
3.push down automata
4.both b and c
Posted Date:-2022-06-07 04:19:52
Context-free grammar (CFG) can be recognized by
1.finite state automata
2.2 way linear bounded automata
3.push down automata
4.both b and c
Posted Date:-2022-06-07 04:27:16
Data types are differed on basis of
1.way of storage
2. type of operations
3.both (a) and (b)
4. type of operators used
Posted Date:-2022-06-07 05:03:53
In COMAL language programs, parameters after name of procedure must be put in
1.brackets
2.back-slash
3.insecure data
4.punctuation marks
Posted Date:-2022-06-07 04:55:46
Items of data help making its structure is classified as
1.elements
2.data structure
3.string structure
4.variable structure
Posted Date:-2022-06-07 05:08:46
Language which have many types, but the type of every name and expression must be calculated at compile time are
1.weakly typed languages
2.loosely typed languages
3.strongly-type languages
4.none of these
Posted Date:-2022-06-07 04:52:45
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; }
1.10
2.9
3.8
4.Error
Posted Date:-2022-06-07 04:33:04
24. In analyzing the compilation of PL/I program,the description creation of more optimal matrix is associated with
1.assembly and output
2.code generation
3.syntax analysis
4.machine independent optimization
Posted Date:-2022-06-07 04:45:14
A compiler can check
1.Logical Error
2.Syntax Error
3.Both Logical and Syntax Error
4.Not Logical and Syntax Error
Posted Date:-2022-06-07 04:39:02
A grammar for a programming language is a formal description of
1.Syntax
2.Semantics
3.Structure
4.Code
Posted Date:-2022-06-07 04:17:55
A grammar will be meaningless
1.if terminal set and non terminal set are not disjoint
2.if the left handside of a production has no non-terminal
3.if the left hand side of a production has non terminal
4.all of the above
Posted Date:-2022-06-07 04:25:21
A main procedural program contains modules. These modules are also called____________.
1.Packages
2.Units
3.Both (a) and (b)
4.None of the above
Posted Date:-2022-06-07 04:47:39
A special quantity named in a program and its value can be changed is called
1.variables
2.constant
3.mantissa
4.exponent
Posted Date:-2022-06-07 05:16:05
A special value placed at end of items data list is called
1.rogue value
2.vague values
3.decimal value
4.numerical value
Posted Date:-2022-06-07 05:11:41
An assembly language is a
1.low level programming language
2.Middle level programming language
3.High level programming language
4.Internet based programming language
Posted Date:-2022-06-07 04:14:02
Any syntactic construct that can be described by a regular expression can also be described by a
1.context sensitive grammar
2.non-context free grammar
3.context free grammar
4.none of these
Posted Date:-2022-06-07 04:26:22
Function which is used in stepwise refinement of program is classified
1.procedure
2.library format
3. routine format
4.subroutine format
Posted Date:-2022-06-07 05:04:55
In analyzing the compilation of PL/I program ,the term “lexical analysis†is associated with
1. recognition of basic syntactic constructs through reductions
2.recognition of basic elements and creation of uniform symbols
3.creation of more optional matrix
4. use of macro processor to produce more optimal assembly code
Posted Date:-2022-06-07 04:42:22
In high-level language COMAL, area is calculated as
1.Area: = Width*Length
2.100 Area = Width*Length
3.100 Area: = Width*Length
4.length 100: area*20width
Posted Date:-2022-06-07 05:02:53
In high-level language Pascal, area is calculated as
1.Area: = Width*Length;
2.length 100: area*20width
3.100 Area = Width*Length
4.100 Area = Width*Length
Posted Date:-2022-06-07 05:24:07
In line "100 INPUT NUM" of a BASIC program, NUM is if chosen by programmer is classified as
1. identifier
2.exponents
3.real constants
4.reserved variable
Posted Date:-2022-06-07 05:25:01
In line "110 DIM num(10)" in BASIC language, 'Line 110' declares
1.one-dimension array
2.two-dimension array
3.Three-dimension array
4.multi-dimension array
Posted Date:-2022-06-07 04:58:55
In line "550 INPUT NUM: PRINT 6.9*NUM*NUM+27" of a BASIC program, 'PRINT and INPUT' is
1.reserved words
2.reserved variable
3.reserved constant
4.reserved exponent
Posted Date:-2022-06-07 05:18:20
In repeat-until loop 'UNTIL Option>0 and Option<8 AND INT(Option) = Option' , INT function is classified as
1.option
2.function
3.format option
4.format function
Posted Date:-2022-06-07 05:29:33
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 ?
1.( L . D )*
2.( L∪ D ) *
3. L . ( L . D )*
4.L ( L ∪ D)*
Posted Date:-2022-06-07 04:54:04
Indicate which of the following is not true about 4GL?
1.4GL does not support a high-level of screen interaction
2.Many database management system packages support 4GLs
3.A 4GL is a software tool which is written, possibly, in some third generation language
4.All of the above
Posted Date:-2022-06-07 04:28:21
Programming language COBOL works best if used for
1.beginners
2.student applications
3.commercial applications
4.household user interface
Posted Date:-2022-06-07 04:56:44
Programming languages are the tools that allow communicating between__________.
1.Developer
2.Computer
3.Developer and data
4.Both (a) and (b)
Posted Date:-2022-06-07 04:48:55
Programming languages such as COMAL and Pascal allow subroutine which is classified as
1.procedure
2.library format
3.routine format
4.subroutine format
Posted Date:-2022-06-07 05:07:37
Sequence of instructions that are carried out for a particular task is classified as
1.routine
2.function
3.procedure
4.subroutine
Posted Date:-2022-06-07 05:30:22
Size of an array is declared by
1.software
2.programmer
3.program users
4.declared automatically
Posted Date:-2022-06-07 05:27:55
Statement "130 num(subs) = 2*subs-1" is an example of
1. array in BASIC
2.array in PASCAL
3.array in COMAL
4.array in COBOL
Posted Date:-2022-06-07 05:00:14
The actual text used to write the instructions for a computer program is called a_______________.
1.Source code
2.Compiler
3.Both (a) and (b)
4.Both (a) and (b)
Posted Date:-2022-06-07 04:50:28
The field that contains a segment index or an internal index is called
1.target datum
2.target offset
3.segment fiel
4.fix dat
Posted Date:-2022-06-07 04:29:15
The term environment in programming language semantics is said as
1.function that maps a name to value held there
2.function that maps a name to a storage location
3.the function that maps a storage location to the value held there
4.none of the above
Posted Date:-2022-06-07 04:22:42
Type of statement written in sequence and are repeated until conditions met is classified as
1.loop
2.case
3.format
4.condition
Posted Date:-2022-06-07 05:25:51
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; }
1.-4
2.-5
3.10
4.11
Posted Date:-2022-06-07 04:36:43
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; }
1.0
2.10
3.Garbage Value
4.Any Memory address
Posted Date:-2022-06-07 04:32:19
What will be output of the following c code? #include int main(){ volatile int a=11; printf(“%dâ€,a); return 0; }
1.11
2.Garbage
3.-2
4. Cannot Predict
Posted Date:-2022-06-07 04:34:58
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; }
1.00
2.65536 -10
3.0 65536
4.Compilation error
Posted Date:-2022-06-07 04:31:30
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; }
1. 8 4 2
2.8 4 1
3.8 4 4
4.8 4 3
Posted Date:-2022-06-07 04:30:28
When divisions of decimals are involved in program, these numbers are stored in
1.real numbers
2.rational numbers
3.original numbers
4.irrational numbers
Posted Date:-2022-06-07 05:05:54
Which is not true about syntax and semantic parts of a computer language
1.syntax is generally checked by the programmer
2. semantics is the responsibility of the programmer
3. semantics is checeked mechanically by a computer
4. both b and c
Posted Date:-2022-06-07 04:20:56
Which of the following are language processors?
1.Assembler
2.Compiler
3.Interpreter
4.All of the above
Posted Date:-2022-06-07 04:15:12
Which of the following grammars are not phase structured
1.regular
2.context free grammar
3.context sensitive
4.none of these
Posted Date:-2022-06-07 04:23:47
Which of the following is integral data type?
1.void
2.char
3.float
4.double
Posted Date:-2022-06-07 04:33:54
Which of the following is most general phase structured grammar?
1.Context – Sensitive
2.Regular
3. Context – Free
4.None of the above
Posted Date:-2022-06-07 04:18:53
Which of the following is not a source error ?
1.faulty design specification
2.faulty algorithm
3.compilers themselves
4.none of these
Posted Date:-2022-06-07 04:46:27
Whole numbers from '0' and all negative numbers are classified as
1.integers
2.real numbers
3.prime numbers
4.composite numbers
Posted Date:-2022-06-07 05:23:07