Vous êtes sur la page 1sur 22

OBJECTIVE QUESTIONS ON LINUX AND OSS

1. Operating system that are owned and licensed by a corporation are called---a) Proprietary operating system b) Server operating system c) Client operating system d)Stand alone operating system 2. This operating system is an example of open source operating system a) Linux c) windows XP b) MACINTOSH d) Unix 3. OSS stands for-----a) Open source software c) Open system software b) Operating system software d) Operating source software 4. OSOS stands for---a) Open source operating system c) Open source system software b) Operating system open source d) Open software opearting software 5. Source code is available for user in---a) FOSS b) OSS C) OSOS d) All of the above 6. COBOL stands for-------a) Common business oriented language c) code of business of language b) Common beginners oriented language d) None of these. 7. BASIC stands for-----a) Business at some translation code b) Beginners all purpose symbolic instruction code c) Basic all symbol instruction code d) None 8. Language Oriented to machine is------a) Structured level language c) Machine level language b) High level language d) low level language 9. Language that resemble human language is------a) Social language c)High level language b) Natural Language d) Low level language 10. Assembly language uses------a) Binary code c) only symbol b) Mnemonic codes d) all of the above 11. An algorithm is a/an ---------------- sequence of steps required to solve the given problem. a) Finite c) infinite b) Any 12. The pictorial representation of an algorithm is called -----------a) Flowchart c) pseudocode b) Program d) none of above

13. The goto statement is useful for ------------- transfer of control a) Unconditional c) conditional b) Conditional and unconditional 14. Circle symbol in flowchart indicates--------------a) Start and end c) connector b) Processing d) decision 15. ------------ makes the program easy to read,understand and debug a) Algorithm c)Indentation b) Structure chart d) flowchart 16. --------------- is the term used for looping a) Sequence c) Iteration b) None of above 17. -------------- can be written once and can be called within program whenever required. a) Loop c) Iteration b) Function 18. ------------- allows the user to execute certain statements fixed number of times a) Function c) loop b) Goto d) procedure 19. Any C function by default returns a --------- value a) Int c)float b) Zero d) none of above 20. The keyword ----------- is followed by an integer or character a) Switch c) case b) For d) goto 21. While constructing flowchart move in ----------- direction a) Bottom to top c) right to left b) Top to bottom d) none of these 22. C supports how many basic looping constructs? a) 2 b) 3 c)6 d) 4 23. Which among the following is a unconditional control structure? a) Do-while c) if-else b) Goto d) for 24. This is not a keyword available in C. a) Switch c) Union b) near d) control 25. Null character is represented by -----------a) \n c)\ 0(zero) b) \ zero d) \ e

FPL Question Bank Note :Q. 1 Program is 1)Set of instruction 2)Set of algorithm 3)Set of pseducode 4) All the above

( underline indicates correct choice )

Q. 2 All arithmetic processes of adding, subtracting, multiplying & dividing are indicated by a ____________ symbol in a flowchart. 1)Input/Ouput 2)Terminal 3)Processing 4) Decision Q.3 write the correct and effective program we must first1)Draw a flowchart . 2) Plant it logic 3)Write pseducode 4) Use iterations}

Q. 4 One of the main feature of machine language is: 1)Readable 2)No translation required 3) Machine independent 4) Less time consuming to code}

Q.5 Which of the following is case sensitive 1)C C, C++ =C, C++, JAVA C, C++, JAVA, VB}

Q.6 C can be used on 1) Only MS-DOS operating system 2)Only Linux operating system 3)Only windows operating system 4)All the above

Q.7 Testing is process of 1) =To find error 2)To find output 3)to find input 4)None Q.8 Translator program that translates as assembly code into the computers m/c code is known as _________ Assembler a) 2)Translator b) 3) Coder c) 4) None of these}

Q.9 Any program compulsorily should have a) b) c) d) Library function Simple function = Main function User defined function}

Q.10 Which device is used as the standard pointing device in a Graphical User Environment a) b) c) d) Keyboard Mouse Joystick Track ball }

Q.11 Computer software includes

a) Application programs
b)

c)
d)

Operating system programs Packaged programs

= All of these.

Q.12. A Compiler is a) b) c) d) a combination of computer hardware a program which translates from one high-level language to another =a program which translates from one high-level to a machine level None

Q.13. When a key is pressed on the keyboard, which standard is used for converting the keystroke into the corresponding bits a) ANSI b) =ASCII c) EBCDIC d) ISO}

Q14 Which of the following is not a computer language? a) Binary Language b) High Level Language c) Machine Language d) = Natural Language}

Q15 The tool used by a programmer to convert a source program to a machine language object module is a a) = Compiler b) Language translator c) Linker d) Preprocessor

Q. 16 Algorithm is a) = Step by step execution of program b) pictorial representation of program c) Pseducode d) None of the above

Q.17 C-language is a) High level language b) Low level language c) Machine level language d) All the above

Q.18 The feature of high level language is a) b) c) d) Readable Easy to debug Less development cost All the above

Q.19 Which of the translates machine level program to high level program a) b) c) d) Linker Compiler Loader None of these

Q.20 M/C language or M/C code is written in the form of ___________ a) Binary number b) Hexadecimal number c) Octal number d) None of these

Q.21 Which of the following is part of documentation.

a) comment b) system manual c) user manual d) all of the above Q 22 Which one of the following is part of Documentation Comment User manual System manual = All of the above}

Q.23 A character variable can at a time store a) 1 character b) 8 character c) 254 character d) None of the above

Q.24 Which of the following is NOT a character constant a) b) c) d) Thank you Enter values of P,N,R 23.56E-03 All the above

Q. 25 = a garbage value void main ()

None of the Above

{ int i = 0 , a[3] ; a[i] = i++; printf (%d",a[i]) ;} }

// Q.26 Address of a[5] void main () { int i = 5, a[5]; printf (%d",&a[i]) ; } } Compiling error. 5 = a garbage value

// Q 27 declaration void function(int); indicates that the function a) returns a float value b) has no arguments c) returns nothing d) has default arguments

Q 28 Parameters passed in a function call are called _________ a) b) c) d) formal parameters receiving parameters local parameters actual parameters

Q 29Which following statement is false about parameters? a) formal parameters should be same as actual parameters. b) actual parameters should be same as formal parameters. c) number of actual & formal parameters should be same. d) data type sequence of actual parameters should be same as formals

Q 30Which two names cannot be same? a) b) c) d) formal parameter & local variable formal parameter & actual parameter formal parameter & function name local variable & function name

Q 31_________requires function definition. a) Editor b) = Compiler c) Loader d) Linker

Q 32 void call(int i) { printf(%d,i++); if(i==3) call(i); } void main() { int x=2; call(x);

} a) b) c) d) 2 23 3 2 is printed infinitely

Q 33 void main() { void display(); display(); } void display() { printf( CETS); }

a) CETS b) CETS CETS c) Error: display() should have a prototype d) Error: type mismatch in redeclaration of display

Q 34Which of the following C expression is equivalent to the algebraic expression: 3x+3(4x+6) a) 3*x*x+3*(4x+6) b) 3*x*x+3(4x+6) c) 3*x*x+3(4*x+6) d) 3*x*x+3*(4*x+6)

Q 35 what will be output of the following program? void main() { float a=0.7; if(a<0.7){ printf("C"); } else{ printf("C++"); } } a) b) c) d) Compile error Type mismatch error C C++

Q.36Which of following is not a data type? a) float b) int c) logical d) char

Q.37Which of following string function adds a string to the end of another string a) stradd b) strcat c) strcmp d) None

Q.38What is the valid range of numbers for int type of data? a) b) c) d) 0 to 256 -32768 to +32767 -65536 to +65536 No specific Range.

Q.39Which of the following is not an output device? a) b) c) d) Scanner Flat Screen Printer Touch Screen

Q 40 What will be output when you will execute the following program? struct A { int p; float q; long double *r; }; void main(){ struct A arr[10]; clrscr(); printf("%d",sizeof arr); getch(); }

a) b) c) d)

10 50 80 100

Q 41 What will be output when you will execute the following program?

union A { char character; int ascii; }; void main(){ union A arr[2]={{65},{'a'}}; clrscr(); printf("%c %c",arr[0],arr[1]); getch(); }

a) b) c) d)

a Aa A Aa

Q 42 what will be output of the following program?

void main() { int x; x=10,20,30; printf("%d",x);

a) b) c) d)

10 20 30 0

Q 43 what will be output of the following program?

void main() { int i=5,j; j=++i+++i+++i; printf("%d %d",i,j); }

a) b) c) d)

8 8 24 24 8 9

Q 44 What will be output of following program? void main() { int a=5,b=6,c=11; clrscr();

printf("%d %d %d"); getch(); } a) garbage value garbage value garbage value b) 5 6 11 c) 11 6 5 d) Compile error

Q 45 Which following statement is true about debugging a) b) c) d) Debugging tool helps to find out error in the program We can trace the program with the help of debugging tool Debugging tools are available with programming languages All of the above

Q 46 Memory unit is one part of a) b) c) d) Input device Control unit Output device =Central Processing Unit

Q 47 Header files in C contain a) b) c) d) Compiler commands Library functions Header information of C programs Operators for files

Q 48 void main() { int i=0; for(i=0;i<=4;i++) { if(i==2) continue; else { printf(%d,i); } } }

a) 1 3 4 b) 1 2 3 c) 1 d) 2

Q 49 void main() {

int sum=0, n=8; do {

sum=n%2; n/=2; printf(%d, sum); }while(n); }

a) 0001 b) 1000 c) 0 d) Compile error

Q 50 int fun (int a) { a++; return a; } void main() { int a=1; fun(a+1); printf(%d,a++); }

a) 1 b) 2 c) 3 d) 4

FPL Multiple Choice Questions Que :1 Which of the following is not a computer language ~ Binary Language ~ High Level Language ~ Machine Language ~ Natural Language

Que :2 The tool used by a programmer to convert a source program to a machine language object module is a ~ Compiler ~ Language translator ~ Linker ~ Preprocessor Que: 3 Algorithm is ~Step by step execution of program ~ pictorial representation of program ~ Pseducode ~ None of the above Que: 4 C-language is ~ High level language ~ Low level language ~ Machine level language ~ All the above Que: 5 Program is ~ Set of instruction ~ Set of algorithm ~ Set of pseducode ~ All the above

Que: 6 Kite box in flow chart is used for ~ Connector ~ Decision ~ Statement ~ All the above

Que: 7 What is not allowed for char ch Ch=1 ch=# ch=\7 ~all are not allowed ~ all are allowed ~ c & d are allowed ~ is allowed

ch=%d

Que: 8 A ______________ is a pictorial representation of an algorithm. ~ Pseducode ~ Program ~ Flowchart ~ Algorithm

Que: 9 All arithmetic processes of adding, subtracting, multiplying & dividing are indicated by a ____________ symbol in a flowchart ~ Input/Ouput ~ Terminal ~ Processing ~ Decision Que: 10 To write the correct and effective program we must first ~ Draw a flowchart ~ Plant it logic ~ Write pseudo code ~ Use iterations Que: 11 One of the main feature of machine language is ~ Readable ~ No translation required ~ Machine independent ~ Less time consuming to code Que: 12 M/C language or M/C code is written in the form of ___________ ~ Binary number ~ Hexadecimal number ~ Octal number ~ None of these

Que: 13 The language understood by the computer without using a

translation program is known as: ~ Machine level language. ~ High level language ~ Low level language ~ Structured level language

Que: 14 The real constant in C can be expressed in which of the following forms ~ Fractional Form only ~ Exponential Form only ~ ASCII Form only ~ Both fractional and exponential forms Que: 15 A character variable can at a time store ~ 1 character ~ 8 character ~ 254 character ~ None of the above Que: 16 The statement char ch=Z would store in ch ~ The character Z ~ ASCII value if Z ~ Z along with the single inverted commas ~ Both a and b

Que: 17 The maximum value that an integer constant can have is ~ -32767 ~ 32767 ~ 1.7014e+38 ~ -1.7014e+38

Que: 18 A C variables cannot start with ~ An alphabet ~ A number ~ A special symbol other than underscore ~ Both b and c

Que: 19 Which of the following shows the correct hierarchy of arithmetic operators in C ~ ** ,* or /, + or -

~ **, * , / , + , ~ **, / , * , + , ~ / or * , - or +

Que: 20 Which of the following is allowed in a C arithmetic instruction ~ [] ~ {} ~ () ~ None of the above

Que: 21 If a is an integer variable, a=5/2; will return a value ~ 2.5 ~3 ~2 ~0 Que: 22 The expression, a=7/22*(3.14+2)*3/5; evaluates to ~ 8.28 ~ 6.28 ~ 3.14 ~0 Que: 23 Hierarchy decides which operator ~ is most important ~ is used first ~ is fastest ~ operates on largest numbers Que: 24 An integer constant in C must have ~ ~ ~ ~ At least one digit At least one decimal point A comma along with digits Digits separated by commas

Que: 25 In C a variable cannot contain ~ Blank spaces ~ Hyphen ~ Decimal Point ~ All the above

Que: 26 What will be the output of following program #include<stdio.h> void main() { int a,b; a=-3- -3; b=-3- -(-3); printf(a=%d b=%d,a,b); } ~ ~ ~ ~ a=0 b=-6 a=0 b=6 a=0 b=0 none of above

Que: 27 In C, Arithmetic instruction cannot contain ~ Variables ~ Constants ~ Variable names on right side of = ~ Constants on left side of =