Fpl-I Test For Div A

50 Questions | Attempts: 67
Share

SettingsSettingsSettings
Fpl-I Test For Div A - Quiz


Questions and Answers
  • 1. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 2. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 3. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 4. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 5. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 6. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 7. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 8. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 9. 

    Which one do you like?

    • A.

      Option 1

    • B.

      Option 2

    • C.

      Option 3

    • D.

      Option 4

    Correct Answer
    A. Option 1
  • 10. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 11. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 12. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 13. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 14. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 15. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 16. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 17. 

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 18. 

    Printf (“%d”, printf (“tim”));(A) results in a syntax error      (B) outputs tim(C) outputs garbage                (D) outputs tim and terminates abruptly

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 19. 

    What does IDE stand for?a.) Integrated Development Environmentb.) Integrated Design Environmentc.) Interior Development Environmentd.) Interior Design Environment

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 20. 

    Output of the following program fragment isx = 5;y = x++;printf(“%d%d”, x, y);(A) 5, 6                    (B) 5, 5(C) 6, 5                    (D) 6, 6

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 21. 

    Consider the following programmain ( ){ float a = 0.5, b = 0.7;if (b < 0.8)if (a < 0.5) printf (“ABCD”);else printf (“PQR”);else printf (“JKLF);}The output is(A) ABCD                             (B) PQR(C) JKLF                               (D) None of these

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 22. 

    ‘C’ is often called a(A) Object oriented language             (B) High level language(C) Assembly language                     (D) Machine level language

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 23. 

    Each C preprocessor directive begins with(A) #               (B) include(C) main()       (D) {

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 24. 

    Find outputmain() {long i = 30000;printf(“%d”, i); }the output is(A) 3000                            (B) 30000(C) 0                                  (D) -1

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 25. 

    Main() {printf(“%p\n”, main());}(A) Prints the address of main function.(B) Prints 0.(C) Is an error.(D) Is an infinite loop.

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 26. 

    The C language includes the header file standard input & output in(A) stdlib.h library                     (B) stdio.h library(C) conio.h library                    (D) #include library

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 27. 

    The << operator is used for(A) Right shifting               (B) Left shifting(C) Bitwise shifting           (D) Bitwise complement

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 28. 

    What is the output of the following program segment?main(){long i = 65536;printf(“%d\n”, i);}(A) 0                       (B) 65536(C) -1                     (D) 65

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 29. 

    What is the output of the following program segment?main(){int i = ++2;printf(“%d\n”, i);}(A) 3               (B) 2(C) 0               (D) -1

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 30. 

    What is the output of the following program segment?main(){int i = ++2;printf(“%d\n”, i);}(A) 3                 (B) 2(C) 0                 (D) -1

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 31. 

    A float variable can store any variable within the range of(A) −1.7 ×1038 to 38 1.7 ×10               (B) 38 − 3.4 ×10 to 38 3.4 ×10(C) − 7.2 ×1038 to 38 7.2 ×10              (D) 38 −1.2 ×10 to 38 1.2 ×10

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 32. 

    Output of the program given below isint i;main(){printf(“%d”, i);}(A) 1                     (B) 0(C) -1                   (D) Null

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 33. 

    What will be the output of the following program?main(){int i = 5;printf(“%d”, i=++i==6);}(A) 0                 (B) 1(C) 7                 (D) 6

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 34. 

    The maximum value that an integer constant can have is(A) .32767                       (B) 32767(C) 1.7014e+38               (D) –1.7014e+38

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 35. 

    The expression X=4+2%-8 evaluates(A) –6                   (B) 6(C) 4                     (D) None

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 36. 

    What will be the output of following program?main(){int x=15;printf(“\n%d%d%d”, x!=15, x=20, x<30);}(A) 0, 20, 1                   (B) 15, 20, 30(C) 0, 0, 0                     (D) Error

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 37. 

    What will be the output of following program?main(){int x=15;printf(“\n%d%d%d”, x!=15, x=20, x<30);}(A) 0, 20, 1                 (B) 15, 20, 30(C) 0, 0, 0                   (D) Error

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 38. 

    How many times the following program would print (“abc”)?main(){printf(“\nabc”);main();}(A) Infinite number of times                        (B) 32767 times(C) 65535 times                                        (D) Till the stack does not overflow

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 39. 

    What would be output of the following program?# define SQR(X) (X*X)main(){int a, b=3;a = SQR(b+2);printf(“\n%d”, a);}(A) 25                           (B) 11(C) Error                       (D) Garbage value

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B
  • 40. 

    If a = 5 and b = 7 then the statement p = (a > b) : a ? b(A) assigns a value 5 to p                       (B) assigns a value 7 to p(C) assigns a value 8 to p                       (D) gives an error message

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 41. 

    The expression P >> 6 shifts all bits of P six places to right. What is the value of P >> 6 ifP = 0× 6db7 ?(A) 0×1234                      (B) 0× 0001(C) 0× 0000                     (D) 0×1B6

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 42. 

    The output of the following isint a = 75;printf (“%d%%”, a);(A) 75                (B) 75%%(C) 75%             (D) None of the above

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 43. 

    The output of the following code isa = 5;a << 1;printf(“%d”, a);(A) 5               (B) 6(C) 2               (D) 3

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    A. A
  • 44. 

    The operators << and >> are(A) assignment operator          (B) relational operator(C) logical operator                (D) bitwise shift operator

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 45. 

    What will be the output of the following programmain( ){int k, num=30;k=(num>5 ? (num<= 10 ? 100:200):500);printf(“\n%d”, num);}(A) 100                     (B) 5(C) 30                       (D) 500

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 46. 

    If a=8 and b=15 then the statementx= (a>b) ? a:b;(A) assigns a value 8 to x                  (B) gives an error message(C) assigns a value 15 to x                 (D) assigns a value 7 to x

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 47. 

    EPROM can be used for(A) Erasing the contents of ROM(B) Reconstructing the contents of ROM(C) Erasing and reconstructing the contents of ROM(D) Duplicating ROM

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 48. 

    Which of the following number system/code uses only 0s and 1s(A) decimal                    (B) octal(C) hexadecimal             (D) none of the above

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    D. D
  • 49. 

    A Compiler is _____________________.(A) a combination of computer hardware(B) a program which translates from one high-level language to another(C) a program which translates from one high-level to a machine level(D) None of these

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    C. C
  • 50. 

    When a key is pressed on the keyboard, which standard is used for converting the keystrokeinto the corresponding bits(A) ANSI                    (B) ASCII(C) EBCDIC               (D) ISO

    • A.

      A

    • B.

      B

    • C.

      C

    • D.

      D

    Correct Answer
    B. B

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 18, 2022
    Quiz Edited by
    ProProfs Editorial Team
  • Aug 28, 2014
    Quiz Created by
    Sunil
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.