edited by
2,752 views
0 votes
0 votes

1) which of the following statements is/are true in context of interpreters ?

$S_1.$  interpreters process program according to the logical flow of control through program.

$S_2.$ Interpreter translate and executes the error free first instruction before it goes the second

$S_3.$ Interpreter processing time is less compared to compiler

$S_4.$   LISP and prolog are interpreted languages.

  1. only $S_1$
  2. only $S_3$
  3. only $S_1,S_2 \hspace{0.1cm} and \hspace{0.1cm} S_3$
  4. only $S_1,S_2$ and $S_4$
     

[2].  If the number of networks and number of hosts in class $B$ are $2^m$ , $( 2^n  -  2)$ respectively.then the relation between $m$  & $n$ is

  1. $3m= 2n$
  2. $7m = 8n$
  3. $8m = 7n$
  4. $2m = 3n$
edited by

1 Answer

1 votes
1 votes
1)

$S_1 :$ Interpreters process program according to the logical flow of control through the program. $TRUE$

$ S_2: $ Interpreter translates and executes the error-free first instruction before it goes the second. $TRUE$

              Interpreter goes line-by-line of the program & executes line by line.

$S_3 :$  Interpreter processing time is less compared to the compiler. $FALSE$

                Compiler processing times is less than the Interpreter because Compiler scans and translates the whole program at a time.

$S_4:$ LISP and prolog are interpreted languages. $TRUE$

So, $\color{Maroon}{S_1,S_2,S_4}$ $\color{Maroon}{\text{ are True.}}$

∴ $\color{Green}{\text{Option D) will be the right option.}}$

-----------------------------------------------------------------------------------

2)

We know that number of networks possible in Class B is = $2^{14}$

& Number of hosts possible in each network in class B is = $2^{16}-2$

Given that, Number of networks in class B are $2^{m}$ & number of hosts are $2^{n}-2$

∴ We can conclude that,

$2^m = 2^{14}$

Or, $m = 14$

& $2^n - 2 = 2^{16}-2$

Or, $n =16$

Now, option A) says that $3m=2n$; But $3 \times 14 \neq 2 \times 16$

option B) says that $7m = 8n$; But $7 \times 14 \neq 8 \times 16$

option C) says that $8m = 7n$; And $8 \times 14 = 7 \times 16$

option D) says that $2m = 3n$; But $2 \times 14 \neq 3 \times 16$

∴ $\color{Blue}{\text{Option C) 8m= 7n is the correct answer}}$
edited by

Related questions

332
views
0 answers
1 votes
anonymous asked Jul 8, 2017
332 views
helloplease mention the cut off or the highest marks obtained in neilit scientist B exam of cse .
178
views
0 answers
1 votes
anonymous asked Jul 8, 2017
178 views
hello ,neilit ka 2016 ka cutoff kitna tha
1.1k
views
1 answers
0 votes
himgta asked Feb 11, 2018
1,076 views
1.1k
views
1 answers
2 votes
Venkat Sai asked Jan 10, 2018
1,080 views
does the questions in gate exam appear randomly or in order like aptitude first maths next and the technical or in any random order?