¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

paper final

rahul errabelly 40 preguntas Actualizado el 11 feb 2018

Hacer el test

Este test tiene tiempo límite, así que se abre en el reproductor de siempre.

Preguntas del test (40)

  1. 1 Comment on the output of this C code?

    #include <stdio.h>
    int main()
    {
    int a[5] = {1, 2, 3, 4, 5};
    int i;
    for (i = 0; i < 5; i++)
    if ((char)a[i] == '5')
    printf("%d\n", a[i]);
    else
    printf("FAIL\n");
    }
    1. AThe compiler will flag an error
    2. BProgram will compile and print the output 5
    3. CProgram will compile and print the ASCII value of 5
    4. DProgram will compile and print FAIL for 5 times
  2. 2The following code ‘for(;;)’ represents an infinite loop. It can be terminated by.
    1. Abreak
    2. Bexit(0)
    3. Cabort()
    4. Dall of the mentioned
  3. 3 Which directory the compiler first looks for the file when using #include ?
    1. ACurrent directory where program is saved
    2. BC:COMPILERINCLUDE
    3. CS:SOURCEHEADERS
    4. DBoth C:COMPILERINCLUDE and S:SOURCEHEADERS simultaneously
  4. 4Which of the following statements are true?
    P. Pointer to Array
    Q. Multi-dimensional array
    1. AP are static, Q are static
    2. BP are static, Q are dynamic
    3. CP are dynamic, Q are static
    4. DP are dynamic, Q are dynamic
  5. 5 Which of the following can be used for random number generation?
    1. Arandom()
    2. Brnd()
    3. Crndm()
    4. Dnone of the mentioned
  6. 6What is the output of this C code?

    #include <stdio.h>
    int main()
    {
    int i = 10, j = 3;
    printf("%d %d %d", i, j);
    }
    1. ACompile time error
    2. B10 3
    3. C10 3 some garbage value
    4. DUndefined behaviour
  7. 7How many primitive data types are there in Java?
    1. A6
    2. B8
    3. C7
    4. D9
  8. 8Determine output:
    class A{
    public static void main(String args[]){
    int x;
    x = 10;
    if(x == 10){
    int y = 20;
    System.out.print("x and y: "+ x + " " + y);
    y = x*2;
    }
    y = 100;
    System.out.print("x and y: " + x + " " + y);
    }
    }
    1. A10 20 100 10
    2. B20 10 10 20
    3. C10 20 20 10
    4. D10 20 10 10
  9. 9.
    In Java, the word true is ................
    1. AA Java keyword
    2. BA Boolean literal
    3. CSame as value 1






      Same as value 1



      Same as value 1
    4. Dsame as value 0
  10. 10Which of the following is used to interpret and execute Java Applet Classes hosted by HTML.
    1. A0
    2. B1
    3. C2
    4. D3

Información

Descripción
Computer Science Test sobre paper final, creado por rahul errabelly el 10/02/2018.
Idioma
English
Visitas
0
Historial
Creado el 10 feb 2018 · actualizado el 11 feb 2018
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?