Fpl-I Test For Div A

50 Questions | Attempts: 67
Share
Please wait...
Question 1 / 50
0 %
0/100
Score 0/100
1. 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
Submit
Please wait...
About This Quiz
Fpl-I Test For Div A - Quiz

Tell us your name to personalize your report, certificate & get on the leaderboard!
2.
Submit
3.
Submit
4. 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
Submit
5. 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
Submit
6. 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
Submit
7.
Submit
8.
Submit
9. Which one do you like?
Submit
10. 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
Submit
11. 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
Submit
12.
Submit
13. Each C preprocessor directive begins with(A) #               (B) include(C) main()       (D) {
Submit
14. The operators << and >> are(A) assignment operator          (B) relational operator(C) logical operator                (D) bitwise shift operator
Submit
15.
Submit
16.
Submit
17.
Submit
18. 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
Submit
19. 'C' is often called a(A) Object oriented language             (B) High level language(C) Assembly language                     (D) Machine level language
Submit
20. Find outputmain() {long i = 30000;printf("%d", i); }the output is(A) 3000                            (B) 30000(C) 0                                  (D) -1
Submit
21. What does IDE stand for?a.) Integrated Development Environmentb.) Integrated Design Environmentc.) Interior Development Environmentd.) Interior Design Environment
Submit
22.
Submit
23. The maximum value that an integer constant can have is(A) .32767                       (B) 32767(C) 1.7014e+38               (D) –1.7014e+38
Submit
24.
Submit
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.
Submit
26. Which of the following number system/code uses only 0s and 1s(A) decimal                    (B) octal(C) hexadecimal             (D) none of the above
Submit
27. The expression P >> 6 shifts all bits of P six places to right. What is the value of P >> 6 ifP = 0m 6db7 ?(A) 0m1234                      (B) 0m 0001(C) 0m 0000                     (D) 0m1B6
Submit
28. A float variable can store any variable within the range of(A) −1.7 m1038 to 38 1.7 m10               (B) 38 − 3.4 m10 to 38 3.4 m10(C) − 7.2 m1038 to 38 7.2 m10              (D) 38 −1.2 m10 to 38 1.2 m10
Submit
29.
Submit
30. The << operator is used for(A) Right shifting               (B) Left shifting(C) Bitwise shifting           (D) Bitwise complement
Submit
31. 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
Submit
32.
Submit
33. 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
Submit
34.
Submit
35.
Submit
36. The output of the following code isa = 5;a << 1;printf("%d", a);(A) 5               (B) 6(C) 2               (D) 3
Submit
37.
Submit
38. 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
Submit
39. 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
Submit
40. Printf ("%d", printf ("tim"));(A) results in a syntax error      (B) outputs tim(C) outputs garbage                (D) outputs tim and terminates abruptly
Submit
41. 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
Submit
42. 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
Submit
43.
Submit
44. 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
Submit
45. Output of the program given below isint i;main(){printf("%d", i);}(A) 1                     (B) 0(C) -1                   (D) Null
Submit
46. The output of the following isint a = 75;printf ("%d%%", a);(A) 75                (B) 75%%(C) 75%             (D) None of the above
Submit
47. 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
Submit
48. The expression X=4+2%-8 evaluates(A) –6                   (B) 6(C) 4                     (D) None
Submit
49. 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
Submit
50. 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
Submit
View My Results

Quiz Review Timeline (Updated): Mar 18, 2022 +

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
Cancel
  • All
    All (50)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
When a key is pressed on the keyboard, which standard is used for...
EPROM can be used for(A) Erasing the contents of ROM(B) Reconstructing...
What is the output of the following program segment?main(){int i =...
A Compiler is _____________________.(A) a combination of computer...
Which one do you like?
The C language includes the header file standard input & output...
What is the output of the following program segment?main(){int i =...
Each C preprocessor directive begins with(A)...
The operators << and >> are(A) assignment operator  ...
How many times the following program would print...
'C' is often called a(A) Object oriented...
Find outputmain() {long i = 30000;printf("%d", i); }the output is(A)...
What does IDE stand for?a.) Integrated Development Environmentb.)...
The maximum value that an integer constant can have is(A) .32767...
Main() {printf("%p\n", main());}(A) Prints the address of main...
Which of the following number system/code uses only 0s and 1s(A)...
The expression P >> 6 shifts all bits of P six places to right....
A float variable can store any variable within the range of(A)...
The << operator is used for(A) Right shifting    ...
If a = 5 and b = 7 then the statement p = (a > b) : a ? b(A)...
If a=8 and b=15 then the statementx= (a>b) ? a:b;(A) assigns a...
The output of the following code isa = 5;a << 1;printf("%d",...
Consider the following programmain ( ){ float a = 0.5, b = 0.7;if (b...
What is the output of the following program segment?main(){long i =...
Printf ("%d", printf ("tim"));(A) results in a syntax error  ...
What would be output of the following program?# define SQR(X)...
What will be the output of the following program?main(){int i =...
What will be the output of the following programmain( ){int k,...
Output of the program given below isint i;main(){printf("%d", i);}(A)...
The output of the following isint a = 75;printf ("%d%%", a);(A)...
Output of the following program fragment isx = 5;y =...
The expression X=4+2%-8 evaluates(A) –6      ...
What will be the output of following program?main(){int...
What will be the output of following program?main(){int...
Alert!

Advertisement