Can’t find an answer?

Can’t find an answer?

Ask us to get the answer

  • This forum is empty.

Consider the following code fragment
void foo(int x, int y)
{
x+=y;
y+=x;
}
main()
{
int x=5.5;
foo(x,x);
}
What is the final value of x in both call by value and call by reference, respectively?
(A) 5 and 16
(B) 5 and 12
(C) 5 and 20
(D) 12 and 20

  • ISRO
  • November 15, 2023 at 5:06 am

What is compression ratio in a typical mp3 audio files?
(A) 4:1
(B) 6:1
(C) 8:1
(D) 10:1

  • ISRO
  • August 25, 2023 at 5:06 am

A hash table with ten buckets with one slot per bucket is shown in the following figure. The symbols S1 to S7 initially entered using a hashing function with linear probing.The maximum number of comparisons needed in searching an item that is not present is


(A) 4
(B) 5
(C) 6
(D) 3

  • ISRO
  • October 29, 2023 at 5:06 am

Yacc stands for
(A) yet accept compiler constructs
(B) yet accept compiler compiler
(C) yet another compiler construct
(D) yet another compiler compiler

  • ISRO
  • November 14, 2023 at 5:06 am

Six files F1, F2, F3, F4, F5 and F6 have 100, 200, 50, 80, 120, 150 records respectively. In what order should they be stored so as to optimize act. Assume each file is accessed with the same frequency
(A) F3, F4, F1, F5, F6, F2
(B) F2, F6, F5, F1, F4, F3
(C) F1, F2, F3, F4, F5, F6
(D) Ordering is immaterial as all files are accessed with the same frequency.

  • ISRO
  • August 20, 2023 at 5:06 am

A hard disk system has the following parameters :
Number of tracks = 500
Number of sectors/track = 100
Number of bytes /sector = 500
Time taken by the head to move from one track to adjacent track = 1 ms
Rotation speed = 600 rpm.
What is the average time taken for transferring 250 bytes from the disk ?
(A) 300.5 ms
(B) 255.5 ms
(C) 255 ms
(D) 300 ms

  • ISRO
  • September 22, 2023 at 5:06 am

The output of the following program is

main(){static int x[] = {1,2,3,4,5,6,7,8}int i;for (i=2; i<6; ++i)x[x[i]]=x[i];for (i=0; i<8; ++i)printf("%d", x[i]);} 

(A) 1 2 3 3 5 5 7 8
(B) 1 2 3 4 5 6 7 8
(C) 8 7 6 5 4 3 2 1
(D) 1 2 3 5 4 6 7 8

  • ISRO
  • September 15, 2023 at 5:06 am

The for loop

for (i=0; i<10; ++i)printf("%d", i&1);

prints:
(A) 0101010101
(B) 0111111111
(C) 0000000000
(D) 1111111111

  • ISRO
  • September 21, 2023 at 5:06 am

Consider the following declaration:

int a, *b=&a, **c=&b;

The following program fragment

a=4;**c=5;

(A) does not change the value of a
(B) assigns address of c to a
(C) assigns the value of b to a
(D) assigns 5 to a

  • ISRO
  • October 5, 2023 at 5:06 am

Consider the following program fragment

i=6720; j=4;
while (i%j)==0
{
i=i/j;
j=j+1;
}

On termination j will have the value
(A) 4
(B) 8
(C) 9
(D) 6720

  • ISRO
  • September 26, 2023 at 5:06 am

Viewing 15 topics - 241 through 255 (of 330 total)

1 2 3 16 17 18 20 21 22
  • You must be logged in to create new topics.