

MCQOPTIONS
Saved Bookmarks
This section includes 87 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Science Engineering (CSE) knowledge and support exam preparation. Choose a topic below to get started.
1. |
In Which Of The Following Form, Data Is Stored In Computer? |
A. | Decimal |
B. | Binary |
C. | Hexadecimal |
D. | Octal |
Answer» C. Hexadecimal | |
2. |
Which Of The Following Are Components Of Central Processing Unit (CPU)? |
A. | Arithmetic Logic Unit, Mouse |
B. | Arithmetic Logic Unit, Control Unit |
C. | Arithmetic Logic Unit, Integrated Circuits |
D. | Control Unit, Monitor |
Answer» C. Arithmetic Logic Unit, Integrated Circuits | |
3. |
Which Level Language Is Assembly Language? |
A. | High-Level Programming Language |
B. | Medium-Level Programming Language |
C. | Low-Level Programming Language |
D. | Machine Language |
Answer» D. Machine Language | |
4. |
One Byte Is Equal To How Many Bits ? |
A. | 4 Bits |
B. | 8 Bits |
C. | 12 Bits |
D. | 16 Bits |
Answer» C. 12 Bits | |
5. |
One Nibble Is Equal To How Many Bits ? |
A. | 4 Bits |
B. | 8 Bits |
C. | 12 Bits |
D. | 16 Bits |
Answer» B. 8 Bits | |
6. |
We Can Insert Pre Written Code In A C Program By Using |
A. | #Read |
B. | #Get |
C. | #Include |
D. | #Put |
Answer» D. #Put | |
7. |
An Assembler Is Used To Translate A Program Written In ? |
A. | Low-Level Language |
B. | Machine Language |
C. | Assembly Language |
D. | High-Level Language |
Answer» D. High-Level Language | |
8. |
Which Committee Standardize C Programming Language? |
A. | W3C |
B. | ANSI |
C. | ISO |
D. | TRAI |
Answer» C. ISO | |
9. |
Who Was Creator Of B Language, Which Inspired Dennis Ritchie To Create Strong Procedural Language Called C? |
A. | Thomas E. Kurtz |
B. | James Gosling |
C. | Brian Kernighan |
D. | Ken Thompson |
Answer» E. | |
10. |
Which Type Of Software Is An Operating System? |
A. | Utility Software |
B. | System Software |
C. | Application Software |
D. | Firmware Software |
Answer» C. Application Software | |
11. |
Total Number Of Keywords In C Are |
A. | 30 |
B. | 12 |
C. | 34 |
D. | 32 |
Answer» E. | |
12. |
Microsoft Office Is Type Of? |
A. | Utility Software |
B. | System Software |
C. | Application Software |
D. | Firmware Software |
Answer» D. Firmware Software | |
13. |
How Many Main() Function We Can Have In Our Project? |
A. | 1 |
B. | 2 |
C. | No Limit |
D. | Depends On Compiler |
Answer» B. 2 | |
14. |
What Is Sizeof() In C? |
A. | Operator |
B. | Function |
C. | Macro |
D. | None Of These |
Answer» B. Function | |
15. |
Is It Possible To Run Program Without Main() Function? |
A. | Yes |
B. | No |
C. | Option. |
D. | Option. |
Answer» B. No | |
16. |
Explicit data type conversion is called |
A. | Type casting |
B. | conversion |
C. | separation |
D. | none |
Answer» B. conversion | |
17. |
C is a ____________________ language |
A. | Platform independent programming |
B. | Platform dependent programming |
C. | Object oriented programming |
D. | None of the above. |
Answer» C. Object oriented programming | |
18. |
Printf() Belongs To Which Library Of C |
A. | Stdlib.H |
B. | Stdio.H |
C. | Stdout.H |
D. | Stdoutput.H |
Answer» C. Stdout.H | |
19. |
What Is Constant? A Constants Have Fixed Values That Do Not Change During The Execution Of |
A. | Program |
B. | Constants Have Fixed Values That Change During The Execution Of A Program |
C. | Constants Have Unknown Values That May Be Change During The Execution Of A Program |
D. | Option. |
Answer» B. Constants Have Fixed Values That Change During The Execution Of A Program | |
20. |
() is used for _________ |
A. | function body |
B. | Arguments |
C. | Return type |
D. | Declaration of function |
Answer» C. Return type | |
21. |
which is better memory allocation when size is not known |
A. | static |
B. | dynamic |
C. | both |
D. | neither |
Answer» C. both | |
22. |
#include "stdio.h"int main(){int a = 10;printf("%d", a);int a = 20;printf("%d",a);return 0;} |
A. | 1020 |
B. | Error: Redeclartion of a |
C. | 2020 |
D. | 1010 |
Answer» C. 2020 | |
23. |
#include "stdio.h"int main(){int a = 10, b = 20;if(a=b){printf("Easy");}else{printf("Hard");}return 0;} |
A. | Easy |
B. | Hard |
C. | EasyHard |
D. | Error in program |
Answer» B. Hard | |
24. |
#define t 10void main(){printf("%d",t);} |
A. | 10 |
B. | Error:Unfined symbol 't' |
C. | Error:Improper placement of preprocessor |
D. | none of the above |
Answer» B. Error:Unfined symbol 't' | |
25. |
Int Main(){Extern Int I;I = 20;Printf("%D", Sizeof(I));Return 0;} |
A. | 20 |
B. | 0 |
C. | Undefined Reference To I |
D. | Linking Error |
Answer» D. Linking Error | |
26. |
If 'a' is the integer which is not statically initialized then what is the value of 'a'? |
A. | zero |
B. | garbage |
C. | none of these |
D. | One |
Answer» C. none of these | |
27. |
Int Main(){Int X = 10;{Int X = 0;Printf("%D",X);}Return 0;} |
A. | 10 |
B. | Compilation Error |
C. | '0' |
D. | Undefined |
Answer» D. Undefined | |
28. |
Wild pointer in C |
A. | if pointer is pointing to a memory location from where variable has been deleted |
B. | if pointer has not been initialized |
C. | if pointer has not defined properly |
D. | if pointer pointing to more than one variable |
Answer» C. if pointer has not defined properly | |
29. |
In order to fetch the address of the variable we write preceding _________ sign before variable name. |
A. | Asteriks |
B. | Percent |
C. | Comma |
D. | Ampersand |
Answer» E. | |
30. |
Size of void pointer is |
A. | 1 byte |
B. | 2 byte |
C. | 3 byte |
D. | 4 byte |
Answer» C. 3 byte | |
31. |
What is storage class for variable A in below code?int main(){int A;A = 10;printf("%d", A);return 0;} |
A. | extern |
B. | auto |
C. | register |
D. | static |
Answer» C. register | |
32. |
which of these is not a valid character constant |
A. | A |
B. | A |
C. | * |
D. | + |
Answer» B. A | |
33. |
Any type of modification on the parameter inside the function will reflect in actual variable value can be related to.. |
A. | call by value |
B. | call by reference |
C. | both of above |
D. | none of above |
Answer» C. both of above | |
34. |
In a function call, _____________ is passed as arguments. |
A. | variables |
B. | constants |
C. | Expressions |
D. | All the above |
Answer» E. | |
35. |
//This Program Is Compiled On 32 Bit DEV-C++Int Main(){Char *Ptr1, *Ptr2;Printf("%D %D", Sizeof(Ptr1), Sizeof(Ptr2));Return 0;} |
A. | 1 1 |
B. | 2 2 |
C. | 4 4 |
D. | none |
Answer» D. none | |
36. |
Int Main(){Int A = 10.5;Printf("%D",A);Return 0;} |
A. | 10.5 |
B. | 10.0 |
C. | 10 |
D. | Compilation Error |
Answer» D. Compilation Error | |
37. |
What Should Be The Output:Int Main(){Int A = 10/3;Printf("%D",A);Return 0;} |
A. | 3.33 |
B. | 3.0 |
C. | 3 |
D. | Option. |
Answer» D. Option. | |
38. |
What is true about fputs function |
A. | write to a file |
B. | takes two parameters |
C. | requires a file pointer |
D. | all of above |
Answer» E. | |
39. |
What Is Correct Order Of Precedence In C |
A. | Addition, Division, Modulus |
B. | Addition, Modulus, Division |
C. | Multiplication, Substration, Modulus |
D. | Modulus, Multiplication, Substration |
Answer» E. | |
40. |
Int Main(){Int _ = 10;Int __ = 20;Int ___ = _ + __;Printf("__%D",___);Return 0;} |
A. | Compilation Error |
B. | Runtime Error |
C. | __0 |
D. | __30 |
Answer» E. | |
41. |
The Compiler In C Ignores All Text Till The End Of Line Using |
A. | // |
B. | / |
C. | */ |
D. | /*/ |
Answer» B. / | |
42. |
Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer? |
A. | 10 Bytes |
B. | 4 Bytes |
C. | 2 Bytes |
D. | 6 Bytes |
Answer» D. 6 Bytes | |
43. |
In Switch Statement, Each Case Instance Value Must Be _______? |
A. | Constant |
B. | Variable |
C. | Special Symbol |
D. | None Of The Above |
Answer» B. Variable | |
44. |
Set of consecutive memory locations is called as ________. |
A. | Function |
B. | Array |
C. | Loop |
D. | Pointer |
Answer» C. Loop | |
45. |
Is The Following Statement A Declaration Or Definition Extern Int I; |
A. | Declaration |
B. | Definition |
C. | none |
D. | all |
Answer» B. Definition | |
46. |
If you pass an array as an argument to a function, what actually gets passed? |
A. | Base address of the array |
B. | Value of elements in array |
C. | First element of the array |
D. | Address of the last element of array |
Answer» B. Value of elements in array | |
47. |
Pointer variable is declared using preceding _________ sign. |
A. | ^ |
B. | * |
C. | & |
D. | % |
Answer» C. & | |
48. |
Which gcc flag is used to generate maximum debug information? |
A. | gcc -g0 |
B. | gcc g1 |
C. | gcc -g |
D. | gcc g3 |
Answer» E. | |
49. |
Will compiler produce any compilation error if same header file is included two times? |
A. | YES |
B. | NO |
C. | Option. |
D. | Option. |
Answer» C. Option. | |
50. |
Which macro is used to insert assembly code in C program (VC++ compiler)? |
A. | __asm__ |
B. | _asm_ |
C. | __asm |
D. | asm |
Answer» D. asm | |