Fpl-I Test 1 Div-b

50 Questions | Attempts: 128
Share
SettingsSettings
Please wait...
  • 1/50 Questions

    The brain of computer is?

    • CPU
    • Keyboard
    • Memory
    • HDD
Please wait...
About This Quiz

Fpl-I Test 1 Div-b - Quiz

Quiz Preview

  • 2. 

    Which language is directly understood by computer?

    • Assembly

    • Machine

    • High Level

    • None of these

    Correct Answer
    A. Machine
  • 3. 

    Machine language of a computer normally written as _________

    • BInary 1s and 0s

    • Variables

    • Array of characters

    • None of these

    Correct Answer
    A. BInary 1s and 0s
  • 4. 

    Which standard code is used to process keystroke on keyboard

    • ANSI

    • ASCII

    • BCD

    • HX

    Correct Answer
    A. ASCII
  • 5. 

     C language was developed by________

    • Ritchie Rich

    • Dennis Ritchie

    • Ken Thomson

    • None of these

    Correct Answer
    A. Dennis Ritchie
  • 6. 

    Which is example of secondary memory?

    • Hard Disc

    • Pen Drive

    • CD

    • All of these

    Correct Answer
    A. All of these
  • 7. 

    The maximum value that an integer constant can have is(a) -32767(b) 32767(c) 1.7014e+38(d) –1.7014e+38

    • A

    • B

    • C

    • D

    Correct Answer
    A. B
  • 8. 

    Find out on which line no . you will get an error ?Line 1: void main ( )Line 2: {Line 3: print(“\n Hello World”)Line 4: }A] Line 1              B] Line 2                   C] Line 3                  D] Line 4

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 9. 

    Which of the following symbol is used to denote a pre-processorstatement?A] !      B]#      C] ~      D];

    • A

    • B

    • C

    • D

    Correct Answer
    A. B
  • 10. 

    Which unit controls the operation of CPU?

    • Storage Unit

    • ALU

    • Control Unit

    • None of these

    Correct Answer
    A. Control Unit
  • 11. 

    What will be the output ?#define SQUARE(X) X * Xvoid main ( ) {printf (“\n Square = %d” , SQUARE(10+2) ); }A] Square = 144              B] Square =32              C] Square =122                     D]Square =12

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 12. 

    Disadvantages of interpreter over compiler is ?

    • They are slower than compiler

    • They are easier than compiler

    • They are same as compiler

    • None of these

    Correct Answer
    A. They are slower than compiler
  • 13. 

    The operator + in a+=4 meansA] a = a + 4           B] a + 4 = a           C] a = 4            D] a = 4 + 4

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 14. 

    Main(){What is the output?int x , y ;x = 753;y = 722;printf(“ x & y is %@” , x & y );a) 0        b)1          c)Error         d)none of these}

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 15. 

    Find output of the following main( ){int a = 5, b = 2 ;int c ;c = a % b ;printf ( "%d", c ) ;}a) 1            b) 0              c) 11            d) 01

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 16. 

    _______is volatile memory?

    • ROM

    • RAM

    • CD

    • None of these

    Correct Answer
    A. RAM
  • 17. 

    ls command is used in Linux for?

    • Creating new directory

    • Removing an empty directory

    • Listing of all files and folders

    • None of these

    Correct Answer
    A. Listing of all files and folders
  • 18. 

    Which of the following is not a relational operator?A]!            B] !=                    C]>=            D]<

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 19. 

    What is the valid range of numbers for int type of data?A] 0 to 256       B] -32768 to +32767        C] -65536 to +65536       D] No specific range

    • A

    • B

    • C

    • D

    Correct Answer
    A. B
  • 20. 

    Which of the following is an example of compounded  assignment statement?A] a = 5        B ]a += 5         C] a = b = c          D] a = b

    • A

    • B

    • C

    • D

    Correct Answer
    A. B
  • 21. 

    Which is not the input device?

    • Monitor

    • Scanner

    • Keyboard

    • Mouse

    Correct Answer
    A. Monitor
  • 22. 

    The operator & is used forA] Bitwise AND              B] Bitwise OR               C] Logical AND            D] Logical OR

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 23. 

        this symbol is used for?

    • Condition

    • Start/stop

    • Processing

    • I/O

    Correct Answer
    A. Condition
  • 24. 

    What will be the value of x after executing the program ?void main ( ) {int x;x = printf(“I See, Sea in C”);printf(“\n x= % d” , x);}A] x= 15              B] x=2                  C] Garbage value                   D] Error

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 25. 

     Which is not the way to represent the algorithm?

    • Concept

    • Flowchart

    • Algorithm

    • Structure chart

    Correct Answer
    A. Concept
  • 26. 

    Algorithm is __________________ ?

    • Sequence of instructions

    • Sequence of programs

    • Sequence of program data

    • None of these

    Correct Answer
    A. Sequence of instructions
  • 27. 

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 28. 

    Find output of the following?main( ){int a, b ;a = -3 - - 3 ;b = -3 - - ( - 3 ) ;printf ( "a = %d b = %d", a, b ) ;}a)a=0 b=-6              b) a=1  b=0            c) a=0    b=-4          d)a=0  b=0

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 29. 

    Which of the following is charecter oriented console I/O   function?A] getchar() and putchar()                                 B] gets() and puts()C]scanf() and printf()                                        D] fgets() and fputs()

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 30. 

    Which is open source software

    • MS-WORD

    • LINUX

    • MS-EXCEL

    • MAC-OS

    Correct Answer
    A. LINUX
  • 31. 

    Assembler is___________?

    • Used to convert high level langague to machine langauge

    • Used to convert assembly program to machine code

    • Used to convert high level langague to assembly langauge

    • Used to convert scripting lanaguage to machine code

    Correct Answer
    A. Used to convert assembly program to machine code
  • 32. 

    FORTRAN stands for…………………….. ?

    • Formula Translator

    • Formula Translation

    • For Transformation

    • None of these

    Correct Answer
    A. Formula Translator
  • 33. 

    Benefit of assembly language over the machine language is ?

    • Easier to understand as it uses mnemonics instead of numeric opcodes

    • Easier to modify

    • Easier to relocate

    • All of the above

    Correct Answer
    A. All of the above
  • 34. 

    • A

    • B

    • C

    • D

    Correct Answer
    A. D
  • 35. 

    Identifiers are ____________  ?

    • Keywords

    • User defined names

    • Reserved words

    • None of these

    Correct Answer
    A. User defined names
  • 36. 

    Void main ( ) {Double x=28;Int r;R= x%5;Printf (“\n r=%d”, r); }A] r= 3                     B] Run time Error               C]Compile time Erroe              D]None of the Above

    • A

    • B

    • C

    • D

    Correct Answer
    A. B
  • 37. 

    Is used as _________ symbol?

    • Processing

    • Terminal

    • Condition

    • Desicion

    Correct Answer
    A. Terminal
  • 38. 

    What is the output of the following code?Void main(){Int c=0, d=5,e=10,a;a=c>1?d>1||e>1?100:200:300;Printf(“a=%d”,a);}A] a=300     B]a=100     C] a=200      D] None of these

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 39. 

    Which is decision symbol?

    • Ellipse

    • Diamond box

    • Rectangle

    • Parallelogram

    Correct Answer
    A. Rectangle
  • 40. 

    Assembly language and machine level languages are?

    • High Level

    • Middle Level

    • Low Level

    • None

    Correct Answer
    A. Low Level
  • 41. 

    Which format specifier is used to print the values of double type variableA]%If                   B]%Id               C]%Iu               D] %f

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 42. 

    Which of the following are tokens in C?A] Keywords       B]Variables       C]Constants       D]All of the above

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 43. 

    Which operator has the lowest priority?A]++           B]%             C]+           D]||

    • A

    • B

    • C

    • D

    Correct Answer
    A. C
  • 44. 

    What will be the output of the following program ?void main ( ){int x=10,y=20;printf (“\n %d”,x,y);}A] 10           B] 20                 C] 10 20                   D] None of these

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 45. 

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 46. 

    Main(){int x , y;x = 2003;x++;y = x++;y = x;y++;x—;x—;printf (“%d%d”,x,y);}a) 2005  2003           b)2004  2003           c) 2003   2003       d)2005   2005

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 47. 

    What is the output of this program ?void main() {int a=b=c=10;a=b=c=50;printf(“\n %d %d %d”,a,b,c); }A] 50 50 50      B] Compile Time Error       C] 10 10 10       D] Three Gaebage Value

    • A

    • B

    • C

    • D

    Correct Answer
    A. A
  • 48. 

    What will be the output ?void main ( ) {int I= 48;printf(“\n %c %d” ,I,I ); }A] Error            B] 48 48             C] 1 48            D] 0 48

    • A

    • B

    • C

    • D

    Correct Answer
    A. D
  • 49. 

    Which of the following language is predecessor to CProgramming Language?A] A      B]B      C] BCPL      D]C++

    • A

    • B

    • C

    • D

    Correct Answer
    A. B

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

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

  • Current Version
  • Mar 21, 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.