Part 1 : C-Programming Test

C-Basics

## Who invented C Language ? - [x] Dennis Ritchie > This is the correct answer. - [ ] Charles Babbage > This is wrong ! - [ ] Grahambel > This is wrong. - [ ] Steve Jobs > This is wrong. ## C Language is a successor to which language ? - [x] B Language > This is the correct answer. - [ ] FORTRAN > This is wrong ! - [ ] D Language > This is wrong. - [ ] BASIC > This is wrong. ## C is a which level language ? - [x] High Level > This is the correct answer. - [ ] Low Level > This is wrong ! - [ ] Low + High > This is wrong. - [ ] None > This is wrong. ## Low level language is ? - [x] Difficult to understand and readability is questionable > This is the correct answer. - [ ] Human readable like language > This is wrong ! - [ ] Language with big program size > This is wrong. - [ ] Language with small program size > This is wrong. ## C is what type of programming language? - [x] Procedural > This is the correct answer. - [ ] Object Oriented > This is wrong ! - [ ] Bit level language > This is wrong. - [ ] Functional > This is wrong. ## What is the present C Language Standard ? - [x] C11 ISO/IEC 9899:2011 > This is the correct answer. - [ ] C99 ISO/IEC 9899:1999 > This is wrong ! - [ ] C05 ISO/IEC 9899:2005 > This is wrong. - [ ] C10 ISO/IEC 9899:2010 > This is wrong. ## What are the new features of C11 or ISO IEC 9899 2011 standard ? - [ ] Type generic Macros, Static Assertions > This is the correct answer. - [ ] Multi Threading, Anonymous Unions, quick_exit > This is wrong ! - [ ] Bounds Checking Interfaces, Anonymous Strurctures > This is wrong. - [x] All > This is wrong. ## C language was invented in which laboratories ? - [x] AT&T Bell Labs > This is the correct answer. - [ ] Uniliver Labs > This is wrong ! - [ ] IBM Labs > This is wrong. - [ ] Verizon Labs > This is wrong. ## BCPL Language is also called ? - [x] None > This is the correct answer. - [ ] C Language > This is wrong ! - [ ] B Language > This is wrong. - [ ] D Language > This is wrong. ## C language was invented to develop which Operating System ? - [x] Unix > This is the correct answer. - [ ] Ubuntu > This is wrong ! - [ ] Linux > This is wrong. - [ ] Android > This is wrong. ## C language was invented in the year ? - [x] 1972 > This is the correct answer. - [ ] 1978 > This is wrong ! - [ ] 1999 > This is wrong. - [ ] 1990 > This is wrong. ## C language is used in the development of ? - [x] All > This is the correct answer. - [ ] Databases > This is wrong ! - [ ] Graphic applications > This is wrong. - [ ] Word Processors > This is wrong. ## A C program is a combination of ? - [x] All > This is the correct answer. - [ ] Statements > This is wrong ! - [ ] Functions > This is wrong. - [ ] Variables > This is wrong. ## #include - [ ] #include is a Preprocessor Directive > Not just this ! - [ ] is a header file with predefined functions like printf, scanf etc > Not just this ! - [ ] # is compulsory before every pre-processor directive > Not just this ! - [x] All > This is correct ! ## Correct way of commenting a single line is ? - [x] //printf("Hello world\n"); > This is correct ! - [ ] $$printf("Hello world\n"); > This is wrong ! - [ ] %%printf("Hello world\n"); > This is wrong ! - [ ] All > This is wrong ! ## What is an Identifier in C Language ? - [ ] Name of a Function or Variable > Not just this ! - [ ] Name of Macros > Not just this ! - [ ] Name of Structure or Union > Not just this ! - [x] All > This is correct ! ## An Identifier may contain ? - [ ] Letters a-z, A-Z in Basic character set. > Not just this ! - [ ] Underscore _ symbol > Not just this ! - [ ] Numbers 0 to 9 > Not just this ! - [x] All > This is correct ! ## An Identifier can start with ? - [x] Alphabet and _ underscore sign > This is correct ! - [ ] Alphabet > This is wrong ! - [ ] _ underscore sign > This is wrong ! - [ ] None > This is wrong ! ## Choose correct statements ? - [x] A constant value does not change. A variable value can change according to needs. > This is correct ! - [ ] A constant can change its values. A variable can have one constant value only. > This is wrong ! - [ ] There is no restriction on number of values for constants or variables > This is wrong ! - [ ] Constants and Variables can not be used in a singe main function > This is wrong ! ## C Programs are used in ? - [ ] Any Electronic device which works on some logic and Operating System > Not just this ! - [ ] Washing machine > Not just this ! - [ ] Fridge, Microwave Ovens > Not just this ! - [x] All > This is correct ! ## Find a Floating Point constant ? - [ ] 12.3E5 > Not just this ! - [ ] 12e34 > Not just this ! - [ ] 125.34857 > Not just this ! - [x] All > This is correct ! ## Find a Character constant ? - [ ] 'A', 'a' > Not just this ! - [ ] '1', '9' > Not just this ! - [ ] '$', '#' > Not just this ! - [x] All > This is correct ! ## Find an integer constant ? - [x] 34 > This is correct ! - [ ] 3.145 > This is wrong ! - [ ] "125" > This is wrong ! - [ ] All > This is wrong ! ## Number of Keywords present in C Language (Original standard) are ? - [x] 32 > This is correct ! - [ ] 34 > This is wrong ! - [ ] 62 > This is wrong ! - [ ] 64 > This is wrong ! ## Each statement in a C program should end with ? - [x] Semicolon ; > This is correct ! - [ ] Colon : > This is wrong ! - [ ] Period . > This is wrong ! - [ ] All > This is wrong !

C-Data-Types-and-Storage

## Choose a right statement ? - [ ] Variables of type auto are initialized fresh for each block or function call > Not just this ! - [ ] Variables of type static are initialized only first time the block or function is called > Not just this ! - [ ] Variables of type register are initialized each time the block or function is executed > Not just this ! - [x] All > This is correct ! ## Choose a right statement ? - [ ] Variables of type auto are stored in Stack memory > Not just this ! - [ ] Variable of type Static are stored in Segmented Memory > Not just this ! - [ ] Variables of type register are stored in Micro Processor Memory > Not just this ! - [x] All > This is correct ! ## Choose a correct statement ? - [ ] Register variables are usually fast retrieving variables > Not just this ! - [ ] Static variables are usually maintain their values between function calls > Not just this ! - [ ] Auto variables release their memory after the block or function where they are declared > Not just this ! - [x] All > This is correct ! ## What is the difference between Declaration and Definition ? - [x] Declaration does not allocate memory for a variable and Definition does allocate memory for a variable > This is correct ! - [ ] Declaration does allocate memory for a variable and Definition does allocate memory for a variable > This is wrong ! - [ ] Declaration does allocate memory for a variable and Definition does not allocate memory for a variable > This is wrong ! - [ ] Declaration does not allocate memory for a variable and Definition does not allocate memory for a variable > This is wrong ! ## Choose a correct statement about static variable ? - [x] A static global variable can be used only in a file in which it is declared > This is correct ! - [ ] A static global variable can be accessed in other files > This is wrong ! - [ ] A static global variable can not be declared without extern keyword > This is wrong ! - [ ] Default value of a static variable is -1. > This is wrong ! ## Variables of type auto, static and extern are all stored in ? - [x] RAM > This is correct ! - [ ] ROM > This is wrong ! - [ ] CPU > This is wrong ! - [ ] Compiler > This is wrong ! ## A register variable is stored in a Register. Where does a Register Present in a Computer ? - [x] CPU > This is correct ! - [ ] RAM > This is wrong ! - [ ] ROM > This is wrong ! - [ ] DMA > This is wrong ! ## What is the default C Storage Class for a local variable ? - [x] auto > This is correct ! - [ ] register > This is wrong ! - [ ] extern > This is wrong ! - [ ] static > This is wrong ! ## Every C Variable must have ? - [x] Both Type and Storage Class > This is correct ! - [ ] Type > This is wrong ! - [ ] Storage class > This is wrong ! - [ ] Either Type or Storage Class > This is wrong ! ## What is a C Storage Class ? - [ ] C Storage decides where to or which memory store the variable > Not just this ! - [ ] C Storage Class decides what is the default value of a variable > Not just this ! - [ ] C Storage Class decides what is the Scope and Life of a variable > Not just this ! - [x] All > This is correct ! ## Left most bit 0 in Singed representation indicates ? - [x] A Positive number > This is correct ! - [ ] A Negative Number > This is wrong ! - [ ] An Unsigned number > This is wrong ! - [ ] None > This is wrong ! ## Range of singed long and unsigned long variables are ? - [x] -2147483648 to +2147483647 and 0 to 4294967295 > This is correct ! - [ ] -2147483647 to +2147483648 and 0 to 4294967295 > This is wrong ! - [ ] -2147483648 to +2147483647 and 0 to 4294967296 > This is wrong ! - [ ] 0 to 4294967295 and -2147483648 to +2147483647 > This is wrong ! ## Size of char, int, float and double in Bytes are ? - [x] 1, 4, 4, 8 > This is correct ! - [ ] 2, 4, 4, 8 > This is wrong ! - [ ] 1, 4, 8, 8 > This is wrong ! - [ ] 1, 2, 4, 8 > This is wrong ! ## Ranges of signed int and unsigned int are ? - [x] -32768 to +32767 and 0 to 65535 > This is correct ! - [ ] 0 to 65535 and -32768 to +32767 > This is wrong ! - [ ] -32767 to +32768 and 0 to 65536 > This is wrong ! - [ ] 0 to 65536 and -32767 to +32768 > This is wrong ! ## Range of signed char and unsigned char are ? - [x] -128 to +127 and 0 to 255 > This is correct ! - [ ] 0 to 255 and -128 to +127 > This is wrong ! - [ ] -128 to -1 and 0 to +127 > This is wrong ! - [ ] 0 to +127 and -128 to -1 > This is wrong ! ## signed and unsigned representation is available for ? - [x] short, int, long, char > This is correct ! - [ ] float, double, long double > This is wrong ! - [ ] float and int > This is wrong ! - [ ] All > This is wrong ! ## Types of Real numbers in C are ? - [ ] float > Not just this ! - [ ] double > Not just this ! - [ ] long double > Not just this ! - [x] All > This is correct ! ## Types of Integers are ? - [ ] short > Not just this ! - [ ] int > Not just this ! - [ ] long > Not just this ! - [x] All > This is correct ! ## Find a correct C Keyword ? - [x] double > This is correct ! - [ ] Float > This is wrong ! - [ ] Int > This is wrong ! - [ ] Long > This is wrong ! ## Find a correct C Keyword ? - [x] case > This is correct ! - [ ] work > This is wrong ! - [ ] constant > This is wrong ! - [ ] permanent > This is wrong ! ## Find a correct C Keyword below ? - [x] default > This is correct ! - [ ] breaker > This is wrong ! - [ ] go to > This is wrong ! - [ ] shorter > This is wrong ! ## Identify wrong C Keywords below ? - [x] struct, construct, signed, unsigned > This is correct ! - [ ] static, while, break, goto > This is wrong ! - [ ] short, long, if, else > This is wrong ! - [ ] return, enum, struct, do > This is wrong ! ## Identify wrong C Keywords below ? - [x] char, extern, intern, return > This is correct ! - [ ] auto, double, int, struct > This is wrong ! - [ ] break, else, long, switch > This is wrong ! - [ ] case, enum, register, typedef > This is wrong ! ## Identify wrong C Keywords below ? - [x] union, const, var, float > This is correct ! - [ ] short, unsigned, continue, for > This is wrong ! - [ ] signed, void, default, goto > This is wrong ! - [ ] sizeof, volatile, do, if > This is wrong !

Arithmetic Operators

## a = 14 % -5 - 2; Value of a is ? - [x] 2 > This is correct ! - [ ] -2 > This is wrong ! - [ ] 0 > This is wrong ! - [ ] -4 > This is wrong ! ## int a= 3 + 5/2; Value of a is ? - [x] 5 > This is correct ! - [ ] 2 > This is wrong ! - [ ] 3 > This is wrong ! - [ ] None > This is wrong ! ## In C language, which Operator group has more priority between (\*, / and %) and (+, -) groups ? - [x] (+, -) < (\*, / and %) > This is correct ! - [ ] Both groups share equal priority > This is wrong ! - [ ] (+, -) > (\*, / and %) > This is wrong ! - [ ] None > This is wrong ! ## Can you use C Modulo Division operator % with float and int ? - [x] Only int variables > This is correct ! - [ ] Only float variables > This is wrong ! - [ ] int or float combination > This is wrong ! - [ ] None > This is wrong ! ## int a = 25 % 10; Value of a is ? - [x] 5 > This is correct ! - [ ] 2 > This is wrong ! - [ ] 2.5 > This is wrong ! - [ ] Compiler error > This is wrong ! ## float var = 3.5 + 4.5; Choose a right statement ? - [x] var = 8.0 > This is correct ! - [ ] var = 8 > This is wrong ! - [ ] var = 7 > This is wrong ! - [ ] var = 0.0 > This is wrong ! ## int a = 3.5 + 4.5; Choose a right statement ? - [x] a = 8 > This is correct ! - [ ] a = 0 > This is wrong ! - [ ] a = 7 > This is wrong ! - [ ] a = 8.0 > This is wrong ! ## int a = 10 + 4.867; Choose a right statement ? - [x] a = 14 > This is correct ! - [ ] a = 10 > This is wrong ! - [ ] a = 14.867 > This is wrong ! - [ ] compiler error > This is wrong ! ## Output of an arithmetic expression with integers and real numbers is by default ? - [x] Real number > This is correct ! - [ ] Integer > This is wrong ! - [ ] Depends on the numbers used in the expression > This is wrong ! - [ ] None > This is wrong ! ## Operator % in C Language is called ? - [x] Modulus > This is correct ! - [ ] Percentage Operator > This is wrong ! - [ ] Quotient Operator > This is wrong ! - [ ] Division > This is wrong ! ## int a = 12 + 3 * 5 / 4 - 10. Choose a correct statement ? - [x] 12, 3, 5, 4 and 10 are Operands. +, -, * and / are Operators. = is an assignment operator. > This is correct ! - [ ] 12, 3, 5, 4 and 10 are Operators. +, -, * and / are Operands. = is an increment operator. > This is wrong ! - [ ] 12, 3, 5, 4 and 10 are Operands. +, -, * and / are Operators. = is decrement operator. > This is wrong ! - [ ] 12, 3, 5, 4 and 10 are Operands. +, -, * and / are Logical Operators. = is an assignment operator. > This is wrong !

Conditional Operators

## Choose a statement to use C if else statement ? - [x] else or else if is optional with if statement > This is correct ! - [ ] else if is compulsory to use with if statement > This is wrong ! - [ ] else or else if is optional with if statement > This is wrong ! - [ ] None of the above > This is wrong ! ## int a = 5 < 2 ? 4 : 3; Value of a is ? - [x] 3 > This is correct ! - [ ] 4 > This is wrong ! - [ ] 5 > This is wrong ! - [ ] 2 > This is wrong ! ## Choose a syntax for C Ternary Operator from the list ? - [x] condition ? expression1 : expression2 > This is correct ! - [ ] condition : expression1 ? expression2 > This is wrong ! - [ ] condition ? expression1 < expression2 > This is wrong ! - [ ] condition < expression1 ? expression2 > This is wrong ! ## What do you call ?: ? - [x] Ternary Operator > This is correct ! - [ ] Binary Operator > This is wrong ! - [ ] If-Else Operator > This is wrong ! - [ ] Comparison Operator > This is wrong ! ## Choose a C Conditional Operator from the list ? - [x] ?: > This is correct ! - [ ] :? > This is wrong ! - [ ] :< > This is wrong ! - [ ] <: > This is wrong !

C-Loops

## Expand or Abbreviate ASCII with regard to C Language ? - [x] American Standard Code for Information Interchange > This is the correct answer. - [ ] American Symbolic Code for Information Interchange > This is wrong ! - [ ] Australian Standard Code for Information Interchange > This is wrong. - [ ] Australian Symbolic Code for Information Interchange > This is wrong. ## What are C ASCII character ranges ? - [ ] A to Z = 65 to 91 > Not just this ! - [ ] a to z = 97 to 122 > Not just this ! - [ ] 0 to 9 = 48 to 57 > Not just this ! - [x] All > This is correct ! ## Choose a correct C Statement regarding for loop -> for( ; ; ); - [x] for loop works infinite number of times > This is the correct answer. - [ ] for loop works exactly first time > This is wrong ! - [ ] Compiler error > This is wrong. - [ ] None > This is wrong. ## Choose a correct statement about C language break; statement ? - [x] A single break; statement can force execution control to come out of only one loop > This is the correct answer. - [ ] A single break; statement can force execution control to come out of a maximum of two nested loops > This is wrong ! - [ ] A single break; statement can force execution control to come out of a maximum of three nested loops > This is wrong. - [ ] None > This is wrong. ## Choose a correct statement about C break; statement ? - [ ] break; statement can be used inside switch block > Not just this ! - [ ] break; statement can be used with loops like for, while and do while. > Not just this ! - [ ] break; statement causes only the same or inner loop where break; is present to quit suddenly. > Not just this ! - [x] All > This is correct ! ## Choose facts about continue; statement is C Language - [ ] continue; is used to take the execution control to next iteration or sequence > Not just this ! - [ ] continue; statement causes the statements below it to skip for execution > Not just this ! - [ ] continue; is usually accompanied by IF statement. > Not just this ! - [x] All > This is correct ! ## What is the way to suddenly come out of or Quit any Loop in C Language ? - [x] break > This is the correct answer. - [ ] continue > This is wrong ! - [ ] leave > This is wrong. - [ ] quit > This is wrong. ## Which loop is faster in C Language, for, while or Do While ? - [ ] for > Not just this ! - [ ] while > Not just this ! - [ ] do {} while > Not just this ! - [x] All work at same speed > This is correct ! ## Loops in C Language are implemented using - [ ] for > Not just this ! - [ ] while > Not just this ! - [ ] do {} while > Not just this ! - [x] All > This is correct ! ## Choose a right C Statement - [ ] Loops or Repetition block executes a group of statements repeatedly > Not just this ! - [ ] Loop is usually executed as long as a condition is met. > Not just this ! - [ ] Loops usually take advantage of Loop Counter > Not just this ! - [x] All > This is correct !

Functions and Pointers

## Choose a correct statement about Recursive Function in C language - [ ] Each recursion creates new variables at different memory locations > Not just this ! - [ ] There is no limit on the number of Recursive calls > Not just this ! - [ ] Pointers can also be used with Recursion but with difficulty > Not just this ! - [x] All > This is correct ! ## What is the C keyword that must be used to achieve expected result using Recursion ? - [x] return > This is the correct answer. - [ ] printf > This is wrong ! - [ ] scanf > This is wrong. - [ ] void > This is wrong. ## A recursive function without If and Else conditions will always lead to ? - [x] Infinite loop > This is the correct answer. - [ ] Finite loop > This is wrong ! - [ ] Incorrect result > This is wrong. - [ ] Correct result > This is wrong. ## A recursive function can be replaced with ? - [x] for, while, do {} while loops > This is the correct answer. - [ ] if > This is wrong ! - [ ] switch > This is wrong. - [ ] return > This is wrong. ## What are the data type of variables that can be returned by a C Function ? - [ ] int, float, double, char > Not just this ! - [ ] struct, enum > Not just this ! - [ ] Pointers to variables, arrays, functions, struct variables, enum variables etc > Not just this ! - [x] All > This is correct ! ## Choose a non Library C function below - [x] printf2 > This is the correct answer. - [ ] printf > This is wrong ! - [ ] scanf > This is wrong. - [ ] gets > This is wrong. ## Choose a correct statement with C Functions - [ ] A function can call any other function any number of times > Not just this ! - [ ] You can write any function in any order in a multi function C File > Not just this ! - [ ] You can refer to or call any function using a Pointer also > Not just this ! - [x] All > This is correct ! ## Choose a corrects statement about C language function arguments - [ ] Number of arguments should be same when sending and receiving > Not just this ! - [ ] Type of each argument should match exactly > Not just this ! - [ ] Order of each argument should be same > Not just this ! - [x] All > This is correct ! ## Arguments received by a function in C language are called ? - [ ] Actual Arguments > This is the correct answer. - [x] Formal arguments > This is wrong ! - [ ] Definite Arguments > This is wrong. - [ ] Ideal Arguments > This is wrong. ## Arguments passed to a function in C language are called ? - [x] Actual Arguments > This is the correct answer. - [ ] Formal arguments > This is wrong ! - [ ] Definite Arguments > This is wrong. - [ ] Ideal Arguments > This is wrong. ## What characters are allowed in a C function name identifier ? - [x] Alphabets, Numbers, Underscore ( _ ) > This is the correct answer. - [ ] Alphabets, Numbers, %, $, _ > This is wrong ! - [ ] Alphabets, Numbers, dollar $ > This is wrong. - [ ] Alphabets, Numbers, % > This is wrong. ## What is the maximum number of statements that can present in a C function ? - [x] No Limit > This is the correct answer. - [ ] 128 > This is wrong ! - [ ] 256 > This is wrong. - [ ] 64 > This is wrong. ## What is the minimum number of functions to be present in a C Program ? - [x] 1 > This is the correct answer. - [ ] 2 > This is wrong ! - [ ] 4 > This is wrong. - [ ] 8 > This is wrong. ## Every C Program (application) should contain which function ? - [x] main() > This is the correct answer. - [ ] printf() > This is wrong ! - [ ] scanf() > This is wrong. - [ ] show() > This is wrong. ## What is the limit for number of functions in a C Program ? - [x] No limit > This is the correct answer. - [ ] 16 > This is wrong ! - [ ] 31 > This is wrong. - [ ] 32 > This is wrong. ## What are types of Functions (application space) in C Language ? - [x] Both Library and User Defined > This is the correct answer. - [ ] Library Functions > This is wrong ! - [ ] User Defined Functions > This is wrong. - [ ] None > This is wrong. ## How many values can a C Function return at a time ? - [x] Only One Value > This is the correct answer. - [ ] Maximum of two values > This is wrong ! - [ ] Maximum of three values > This is wrong. - [ ] Maximum of 8 values > This is wrong. ## A function which calls itself is called ? - [x] Recursive Function > This is the correct answer. - [ ] Self Function > This is wrong ! - [ ] Auto Function > This is wrong. - [ ] Static Function > This is wrong. ## Choose a correct statement about C Function. main(){ } - [ ] "main" is the name of default must and should Function > Not just this ! - [ ] main() is same as int main() > Not just this ! - [ ] By default, return 0 is added as the last statement of a function without specific return type. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C Language Functions - [ ] A function name can not be same as a predefined C Keyword > Not just this ! - [ ] A function name can start with an Underscore( _ ) or A to Z or a to z > Not just this ! - [ ] Default return type of any function is an Integer > Not just this ! - [x] All > This is correct ! ## Choose correct statement about Functions in C Language. - [ ] A Function is a group of c statements which can be reused any number of times > Not just this ! - [ ] Every Function has a return type > Not just this ! - [ ] Every Function may or may not return a value. > Not just this ! - [x] All > This is correct !

Arrays and Pointers

## Choose a correct statement about a C Multidimensional array - [x] First Dimension size is optional when initializing the array at the same time > This is the correct answer. - [ ] Last Dimension size is optional when initializing the array at the same time > This is wrong ! - [ ] It is a must to specify all dimensions of a multidimensional array > This is wrong. - [ ] Memory locations of elements of a multidimensional array is not sequential > This is wrong. ## What is the function used to allocate memory to an array at run time with out Zero initial value to each ? - [ ] calloc > This is the correct answer. - [x] malloc > This is wrong ! - [ ] palloc > This is wrong. - [ ] kalloc > This is wrong. ## What is the function used to allocate memory to an array at run time with Zero initial value to each ? - [x] calloc > This is the correct answer. - [ ] malloc > This is wrong ! - [ ] palloc > This is wrong. - [ ] kalloc > This is wrong. ## What is the need for C arrays ? - [ ] You need not create so many separate variables and get confused while using > Not just this ! - [ ] Using a single Array variable, you can access all elements of the array easily > Not just this ! - [ ] Code maintainability is easy for programmers and maintainers > Not just this ! - [x] All > This is correct ! ## Can we change the starting index of an array from 0 to 1 in any way ? - [x] No way > This is the correct answer - [ ] Yes. Through pointers > This is wrong ! - [ ] Yes. Through Call by Value > This is wrong. - [ ] Yes. Through Call by Reference > This is wrong. ## What is the minimum and maximum Indexes of below array ? ``` int array[9]; ``` - [x] 0, 8 > This is the correct answer. - [ ] 1, 9 > This is wrong ! - [ ] -1, 8 > This is wrong. - [ ] None > This is wrong. ## What happens when you try to access an Array variable outside its Size ? - [x] Some garbage value will be returned > This is the correct answer. - [ ] Compiler error is thrown > This is wrong ! - [ ] 0 value will be returned > This is wrong. - [ ] 1 value will be returned > This is wrong. ## What is the value of an array element which is not initialized ? - [x] Depends on Storage Class > This is the correct answer. - [ ] 0 > This is wrong ! - [ ] 1 > This is wrong. - [ ] None > This is wrong. ## What is an array Base Address in C language ? - [ ] Base address is the address of 0th index element > Not just this ! - [ ] An array b[] base address is &b[0] > Not just this ! - [ ] An array b[] base address can be printed with printf("%d", b); > Not just this ! - [x] All > This is correct ! ## An entire array is always passed as ? - [x] Call by reference > This is the correct answer. - [ ] Call by value > This is wrong ! - [ ] Address relocation > This is wrong. - [ ] Address restructure > This is wrong. ## What is the output of C program ? ``` int main() { char grade[] = {'A','B','C'}; printf("GRADE=%d, ", *grade); printf("GRADE=%d", grade[0]); return 0; } ``` - [x] 65 65 > This is the correct answer. - [ ] A A > This is wrong ! - [ ] 65 A > This is wrong. - [ ] None > This is wrong. ## What is the output of C Program ? ``` int main() { char grade[] = {'A','B','C'}; printf("GRADE=%c, ", *grade); printf("GRADE=%d", grade); return 0; } ``` - [x] GRADE=A, GRADE=some address of array > This is the correct answer. - [ ] GRADE=some address of array, GRADE=A > This is wrong ! - [ ] GRADE=A, GRADE=A > This is wrong. - [ ] Compiler error > This is wrong. ## What is the output of C Program ? ``` int main() { int a[] = {1,2,3,4}; int b[4] = {5,6,7,8}; printf("%d,%d", a[0], b[0]); return 0; } ``` - [x] 1,5 > This is the correct answer. - [ ] 2,6 > This is wrong ! - [ ] 0,0 > This is wrong. - [ ] Compiler error > This is wrong. ## What is the output of C Program ? ``` int main() { int a[]; a[4] = {1,2,3,4}; printf("%d", a[0]); return 0; } ``` - [ ] Compiler error > This is the correct answer. - [ ] 1 > This is wrong ! - [ ] 2 > This is wrong. - [ ] 4 > This is wrong. ## Choose a correct statement about C language arrays - [ ] An array size can not changed once it is created. > Not just this ! - [ ] Array element value can be changed any number of times > Not just this ! - [ ] To access Nth element of an array of employees, use employees[n-1] as the starting index is 0. > Not just this ! - [x] All > This is correct ! ## An array Index starts with ? - [x] 0 > This is the correct answer. - [ ] -1 > This is wrong ! - [ ] 1 > This is wrong. - [ ] 2 > This is wrong. ## What are the Possible Types of Arrays ? - [ ] int, long, float, double > Not just this ! - [ ] struct, enum > Not just this ! - [ ] char > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C language arrays - [ ] An array address is the address of first element of array itself > Not just this ! - [ ] An array size must be declared if not initialized immediately > Not just this ! - [ ] Array size is the sum of sizes of all elements of the array > Not just this ! - [x] All > This is correct ! ## What is an Array in C language ? - [ ] A group of elements of same data type > Not just this ! - [ ] An array contains more than one element > Not just this ! - [ ] Array elements are stored in memory in continuous or contiguous locations > Not just this ! - [x] All > This is correct !

Strings, Char Arrays

## What is actually passed to PRINTF or SCANF functions ? - [x] Address of String > This is the correct answer. - [ ] Value of String > This is wrong ! - [ ] End address of String > This is wrong. - [ ] Integer equivalent value of String > This is wrong. ## Choose a correct C statement about String functions ? - [ ] toupper('a') returns A > Not just this ! - [ ] tolower('D') returns d > Not just this ! - [ ] strcmp("123","12345") returns a negative number > Not just this ! - [x] All > This is correct ! ## Choose a correct C statement about String functions ? - [ ] int n=strlen("abc") returns 3. > Not just this ! - [ ] strupr("abc") returns ABC > Not just this ! - [ ] strlwr("Abc") returns abc > Not just this ! - [x] All > This is correct ! ## A character constant is enclosed by ? - [x] Right Single Quotes > This is the correct answer. - [ ] Left Single Quotes > This is wrong ! - [ ] Double Qoutes > This is wrong. - [ ] None > This is wrong. ## What is the ASCII value of NULL or \0 ? - [x] 0 > This is the correct answer. - [ ] 1 > This is wrong ! - [ ] 10 > This is wrong. - [ ] 49 > This is wrong. ## Choose a correct C Statement about Strings - [ ] PRINTF is capable of printing a multi word string > Not just this ! - [ ] PUTS is capable of printing a multi word string > Not just this ! - [ ] GETS is capable of accepting a multi word string from console or command prompt > Not just this ! - [x] all > This is correct ! ## What is the Format specifier used to print a String or Character array in C Printf or Scanf function ? - [x] %s > This is the correct answer. - [ ] %c > This is wrong ! - [ ] %d > This is wrong. - [ ] %f > This is wrong. ## What is a String in C Language ? - [x] String is an array of Characters with null character as the last element of array > This is the correct answer. - [ ] String is a new Data Type in C > This is wrong ! - [ ] String is an array of Characters with null character as the first element of array > This is wrong. - [ ] String is an array of Integers with 0 as the last element of array > This is wrong.

Structures and Pointers

## What is actually passed if you pass a structure variable to a function ? - [x] Copy of structure variable > This is correct ! - [ ] Reference of structure variable > This is wrong ! - [ ] Starting address of structure variable > This is wrong ! - [ ] Ending address of structure variable > This is wrong ! ## Choose a correct statement about structure and array ? - [ ] An array stores only elements of same type. Accessing elements is easy > Not just this ! - [ ] A structure is preferred when different type elements are to be combined as a single entity > Not just this ! - [ ] An array implementation has performance improvements to structure > Not just this ! - [x] All > This is correct ! ## What are the types of data allowed inside a structure ? - [ ] int, float, double, long double > Not just this ! - [ ] char, enum, union > Not just this ! - [ ] pointers and Same structure type members > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C structure elements ? - [x] structure elements are stored in contiguous memory locations > This is correct ! - [ ] Structure elements are stored on random free memory locations > This is wrong ! - [ ] structure elements are stored in register memory locations > This is wrong ! - [ ] None > This is wrong ! ## Choose a correct statement about C structures ? - [x] Structure members can not be initialized at the time of declaration > This is correct ! - [ ] Structure elements can be initialized at the time of declaration > This is wrong ! - [ ] Only integer members of structure can be initialized at the time of declaraion > This is wrong ! - [ ] None > This is wrong ! ## What is a structure in C language ? - [ ] A structure is a collection of elements that can be of same data type > Not just this ! - [ ] A structure is a collection of elements that can be of different data type > Not just this ! - [ ] Elements of a structure are called members > Not just this ! - [x] All > This is correct !

Console IO and Formatted IO

## Choose a C Formatted Input Output function below ? - [ ] printf(), scanf() > Not just this ! - [ ] sprintf(), sscanf() > Not just this ! - [ ] fprintf(), fscanf() > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about format specifiers ? - [ ] %f prints float constants with 6 digits of precision > Not just this ! - [ ] %lf prints double constants > Not just this ! - [ ] %Lf prints long double constants > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C format Specifiers ? - [ ] %c prints unsigned or signed character constants. > Not just this ! - [ ] %s prints string constants > Not just this ! - [ ] %l or %L prints long constants. > Not just this ! - [x] All > This is correct ! ## Choose a valid C format specifier ? - [ ] %d prints integer constants > Not just this ! - [ ] %u prints unsigned integer constants > Not just this ! - [ ] %ld prints signed long and %lu prints unsigned long constants > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C Escape Sequences ? - [ ] \' outputs one Single Quote. Right Single Quote > Not just this ! - [ ] \" outputs one Double Quote > Not just this ! - [ ] \\ produces one Visible Back Slash \ > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C Escape Sequences ? - [ ] \r produces one Carriage Return. \r does not take you to the next line. It takes cursor to only the beginning of same line > Not just this ! - [ ] \f produces form feed > Not just this ! - [ ] \a produces Alert Sound or Beep Sound from PC motherboard speaker > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C Escape Sequences ? - [ ] \n produces new line > Not just this ! - [ ] \t produces one tab space > Not just this ! - [ ] \b produces one Backspace > Not just this ! - [x] All > This is correct ! ## What is an Escape Sequence in C language ? - [ ] An escape sequence is a combination of two characters starting with Back Slash always > Not just this ! - [ ] An escape sequence is usually part of a string to tell compiler to produce New Lines, New tabs, Single or Double quotes etc > Not just this ! - [ ] An escape sequence is used to format the output to look in desired way > Not just this ! - [x] All > This is correct !

Preprocessor Directives

## The C pre-processors are specified with which symbol ? - [x] # > This is correct ! - [ ] " " > This is wrong ! - [ ] $ > This is wrong ! - [ ] % > This is wrong ! ## Pre-processor feature that supply line numbers and file names to compiler is called ? - [x] Line control > This is correct ! - [ ] Concatenation > This is wrong ! - [ ] Macro substitution > This is wrong ! - [ ] Selective inclusion > This is wrong ! ## #include is called ? - [x] Pre-processor directive > This is correct ! - [ ] File inclusion directive > This is wrong ! - [ ] Inclusion directive > This is wrong ! - [ ] All > This is wrong ! ## If #include is used with a file name in angular bracket ? - [x] The file is searched for in the standard compiler include paths > This is correct ! - [ ] None > This is wrong ! - [ ] The search path is expanded to include the current source directory > This is wrong ! - [ ] All > This is wrong ! ## Which of the following is a C pre-procesor ? - [ ] #endif > Not just this ! - [ ] #ifdef > Not just this ! - [ ] #define > Not just this ! - [x] All > This is correct ! ## The pre-processor provides the ability for ? - [ ] inclusion of header files > Not just this ! - [ ] conditional compilation and line control > Not just this ! - [ ] inclusion of macros > Not just this ! - [x] All > This is correct ! ## The preprocessor removes from source code ? - [x] Comments > This is correct ! - [ ] Header files > This is wrong ! - [ ] Both comments and header files > This is wrong ! - [ ] All > This is wrong ! ## # define FACT 1 ? - [x] Macro > This is correct ! - [ ] conditional compilation > This is wrong ! - [ ] File inclusion > This is wrong ! - [ ] All > This is wrong ! ## # define PIE 10 ? - [x] During preprocessing, the preprocessor replaces every occurrence of PIE in program with 10 > This is correct ! - [ ] During runtime, the preprocessor replaces every occurrence of PIE in program with 10 > This is wrong ! - [ ] During runtime, the compiler replaces every occurrence of PIE in program with 10 > This is wrong ! - [ ] Durng compilation, PIE is converted to assembly language > This is wrong ! ## Which of the following is not a preprocessor directive ? - [x] File handling > This is correct ! - [ ] File inclusion > This is wrong ! - [ ] Macro Expansion > This is wrong ! - [ ] Conditional compilation > This is wrong ! ## The features offered by preprocessor in C is known as ? - [x] preprocessor directive > This is correct ! - [ ] preprocessor instructions > This is wrong ! - [ ] preprocessor direction > This is wrong ! - [ ] preprocessor terms > This is wrong ! ## If C source code is in file sample.c, then expanded source code gets stored in file named ? - [x] sample.i > This is correct ! - [ ] sample.h > This is wrong ! - [ ] sample.o > This is wrong ! - [ ] sample.e > This is wrong ! ## The preprocessor works on the C source code to create ? - [x] Expanded Source Code > This is correct ! - [ ] bytes > This is wrong ! - [ ] bits > This is wrong ! - [ ] Flattened source code > This is wrong ! ## C Pre-Processor ? - [ ] Takes care of conditional compilation > Not just this ! - [ ] Takes care of Macros > Not just this ! - [ ] Takes care of include files > Not just this ! - [x] All > This is correct ! ## Before C source code is compiled it is passed through another program called ? - [x] preprocessor > This is correct ! - [ ] interceptor > This is wrong ! - [ ] processor > This is wrong ! - [ ] interpreter > This is wrong !

C Program Build Process

## The preprocessor creates the file with extension ? - [x] .i > This is correct ! - [ ] .a > This is wrong ! - [ ] .s > This is wrong ! - [ ] .o > This is wrong ! ## The macros specifies in source code are expanded by ? - [x] preprocessor > This is correct ! - [ ] assembler > This is wrong ! - [ ] compiler > This is wrong ! - [ ] linker > This is wrong ! ## If we do not specify the executable file name at the compilation time in GCC, then in linux the compiler creates executable named as ? - [x] a.out > This is correct ! - [ ] a.exe > This is wrong ! - [ ] x.out > This is wrong ! - [ ] x.exe > This is wrong ! ## The object file contains the ? - [x] machine code > This is correct ! - [ ] assembly code > This is wrong ! - [ ] modified source code > This is wrong ! - [ ] None > This is wrong ! ## If sample.c is compiled with GCC, then the sample.s file will have ? - [x] assembly code > This is correct ! - [ ] machine code > This is wrong ! - [ ] preprocessed code > This is wrong ! - [ ] expanded source code > This is wrong ! ## What is the role of linker in the compilation process ? - [ ] linker links the object code with the library code > Not just this ! - [ ] linker converts machine code into executable machine code > Not just this ! - [ ] linker generates an executable file > Not just this ! - [x] All > This is correct ! ## The assembly code is converted into the machine code by ? - [x] assembler > This is correct ! - [ ] compiler > This is wrong ! - [ ] linker > This is wrong ! - [ ] None > This is wrong ! ## The compiler converts ? - [x] preprocessed source code into assembly code > This is correct ! - [ ] assembly code into machine code > This is wrong ! - [ ] machine code into assembly code > This is wrong ! - [ ] All > This is wrong ! ## The correct sequence of GCC compilation process is ? - [x] preprocessing -> compilation -> assemble -> linking > This is correct ! - [ ] assemble -> preprocessing -> compilation -> linking > This is wrong ! - [ ] preprocessing -> assemble -> compilation -> linking > This is wrong ! - [ ] None > This is wrong ! ## All the steps involved from the stage of writing a C program to getting it executed is known as ? - [x] Build process > This is correct ! - [ ] Setup process > This is wrong ! - [ ] Execution process > This is wrong ! - [ ] Compilation process > This is wrong !

File Operations IO

## Choose a correct syntax for FSCANF and FPRINTF in c language ? - [x] fprintf(fp,"format specifier",variables); and fscanf(fp,"format specifier",variables); > This is correct ! - [ ] fprintf("format specifier",variables, fp); and fscanf("format specifier",variables, fp); > This is wrong ! - [ ] fprintf(fp,"format specifier",variables); and fscanf(fp,"format specifier",variables); > This is wrong ! - [ ] None > This is wrong ! ## What is the Cfunction used tomove current pointer to the beginning of file ? - [x] rewind(fp) > This is correct ! - [ ] rev(fp) > This is wrong ! - [ ] rew(fp) > This is wrong ! - [ ] wind(fp) > This is wrong ! ## What are the C functions used to read or write a file in Text Mode ? - [x] fprintf(), fscanf() > This is correct ! - [ ] fread(), fwrite() > This is wrong ! - [ ] fprint(), fscan() > This is wrong ! - [ ] read(), write() > This is wrong ! ## Choose a correct statement about C file mode "a+" ? - [ ] a+ mode always appends new data to the end of existing content > Not just this ! - [ ] a+ mode creates a new file if not found or existing. > Not just this ! - [ ] a+ mode allows reading also. mode "a" allows only appending not reading. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C file mode "a" ? - [ ] "a" is for append operation. You can append or add new content to the existing contents. > Not just this ! - [ ] If file is not found, new file is created. > Not just this ! - [ ] You can not write read file contents. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C file mode "w+" ? - [ ] Like "w" mode, "w+" mode creates a new file abc.txt if not found. NULL is only returned if some other problems in PC exist in opening a file. > Not just this ! - [ ] w+ mode allows you to read the file also. Only after writing, you can read contents if any written. Before writing existing contents are emptied. > Not just this ! - [ ] w+ mode always makes a file contents empty like w mode. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C File Mode "r+" ? - [ ] r+ mode allows reading of existing contents of file abc.txt only if file is found. > Not just this ! - [ ] If file is not found, NULL is returned by fopen(). > Not just this ! - [ ] You can read existing contents, edit existing content and add new content. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about File Write Mode "w" ? - [ ] If the file abc.txt is not found File abc.txt is created on disk. > Not just this ! - [ ] If the file abc.txt is found, fopen() returns a FILE pointer as usual. Every time, contents of abt.txt are overwritten in "w" mode. > Not just this ! - [ ] Read operation is not allowed in "w" mode. > Not just this ! - [x] All > This is correct ! ## Choose a correct statement about C file "R" mode operation using fopen ? - [ ] If the file abc.txt is found, fopen returns a FILE pointer > Not just this ! - [ ] If the file abc.txt is not found, fopen returns NULL or 0. > Not just this ! - [ ] File abc.txt is only opened in Read Mode. Now write operation is performed. > Not just this ! - [x] All > This is correct ! ## What is the need for closing a file in C language ? - [ ] fclose(fp) closes a file to release the memory used in opening a file. > Not just this ! - [ ] Closing a file clears Buffer contents from RAM or memory. > Not just this ! - [ ] Unclosed files occupy memory and PC hangs when on low memory. > Not just this ! - [x] All > This is correct ! ## EOF is an integer type defined in stdio.h and has a value of ? - [x] -1 > This is correct ! - [ ] 0 > This is wrong ! - [ ] 1 > This is wrong ! - [ ] NULL > This is wrong ! ## What does the following segment of code do ? fprintf(fp, "Copying!"); - [x] It writes "Copying!" into the file pointed by fp > This is correct ! - [ ] It reads "Copying!" from the file and prints on display > This is wrong ! - [ ] It writes as well as reads "Copying!" to and from the file and prints it > This is wrong ! - [ ] None > This is wrong ! ## What is the meant by 'a' in the following operation ? - [x] Append > This is correct ! - [ ] Attach > This is wrong ! - [ ] Authenticate > This is wrong ! - [ ] Add > This is wrong ! ## Which of the following is data type of file pointer ? - [x] FILE > This is correct ! - [ ] int > This is wrong ! - [ ] float > This is wrong ! - [ ] double > This is wrong ! ## Select a function which is used to write a string to a file ? - [x] fputs > This is correct ! - [ ] putc > This is wrong ! - [ ] getc > This is wrong ! - [ ] fgets > This is wrong ! ## A data of the file is stored in a ? - [x] Hard disk > This is correct ! - [ ] RAM > This is wrong ! - [ ] ROM > This is wrong ! - [ ] NONE > This is wrong ! ## getc() returns EOF when ? - [x] When getc() fail to read the character and when end of file is reached > This is correct ! - [ ] When getc() fail to read the character > This is wrong ! - [ ] When end of file is reached > This is wrong ! - [ ] None > This is wrong ! ## What is the purpose of "rb" in fopen() function ? - [x] Open file in binary mode for reading > This is correct ! - [ ] Create a new file for reading and writing > This is wrong ! - [ ] Open file in binary mode for reading and writing > This is wrong ! - [ ] None > This is wrong ! ## If there is any error while opening a file, fopen will return ? - [x] NULL > This is correct ! - [ ] EOF > This is wrong ! - [ ] None > This is wrong ! - [ ] void > This is wrong ! ## Which type of files can't be opened using fopen() ? - [x] None > This is correct ! - [ ] .txt > This is wrong ! - [ ] .bin > This is wrong ! - [ ] .c > This is wrong ! ## FILE reserved word is ? - [x] It is a type name defined in stdio.h > This is correct ! - [ ] Pointer to the structure defined in stdio.h > This is wrong ! - [ ] One of the basic datatypes in c > This is wrong ! - [ ] A structure tag declared in stdio.h > This is wrong ! ## fseek() should be preferred over rewind() mainly because ? - [x] In rewind, there is no way to check if the operations completed successfully > This is correct ! - [ ] rewind() may fail for large files > This is wrong ! - [ ] rewind() doesn't work for empty files > This is wrong ! - [ ] None > This is wrong ! ## The first and second arguments of fopen() are ? - [x] A character string containing the name of the file & the second argument is the mode > This is correct ! - [ ] A character string containing the name of the user & the second argument is the mode > This is wrong ! - [ ] A character string containing file pointer & the second argument is the mode > This is wrong ! - [ ] None > This is wrong ! ## Which of the following true about FILE \*fp ? - [x] FILE is a structure and fp is a pointer to the structure of FILE type > This is correct ! - [ ] FILE is a buffered stream > This is wrong ! - [ ] FILE is a stream > This is wrong ! - [ ] FILE is a keyword in C for representing files and fp is a variable of FILE type > This is wrong !

Bitwise Operators

## Choose a correct statement about C Bitwise operators ? - [ ] 0^number = number > Not just this ! - [ ] 1 | number = number > Not just this ! - [ ] 0 & number = 0 > Not just this ! - [x] All > This is correct ! ## What is the minimum and maximum values in Octal Number System ? - [x] 0 to 7 > This is correct ! - [ ] 1 to 8 > This is wrong ! - [ ] 2 to 9 > This is wrong ! - [ ] None > This is wrong ! ## Right Shift operation >> is equivalent to ? - [x] Division by 2 > This is correct ! - [ ] Multiplying by 2 > This is wrong ! - [ ] Adding 2 > This is wrong ! - [ ] Subtracting 2 > This is wrong ! ## Left Shift operation is equivalent to ? - [x] Multiplying by 2 > This is correct ! - [ ] Division by 2 > This is wrong ! - [ ] Adding 2 > This is wrong ! - [ ] Subtracting 2 > This is wrong ! ## Which is Bit Toggling operator below ? - [x] ~ > This is correct ! - [ ] ^ > This is wrong ! - [ ] | > This is wrong ! - [ ] & > This is wrong ! ## What is the Bitwise operator used to set a particular bit value to 1 ? - [x] | > This is correct ! - [ ] & > This is wrong ! - [ ] ^ > This is wrong ! - [ ] ~ > This is wrong ! ## What is a Single Operand Operator below ? - [x] ~ > This is correct ! - [ ] & > This is wrong ! - [ ] | > This is wrong ! - [ ] ^ > This is wrong ! ## Choose a correct statement about Right Shift Operator >> ? - [ ] Right shift operator shift individual bits on to the right side. > Not just this ! - [ ] When shifting bits right side, overflow bits on the right are ignored or truncated > Not just this ! - [ ] Zeroes are filled on the left side > Not just this ! - [x] All > This is correct ! ## Choose correct statement about Left Shift Operator << ? - [ ] Left shift operator shifts individual bits on the left side > Not just this ! - [ ] When shifting left side, overflow bits are ignored. > Not just this ! - [ ] Zeroes are filled on the right side > Not just this ! - [x] All > This is correct ! ## What is the result of Right Shift Operator >> on (00110000>>2) ? - [x] 00001100 > This is correct ! - [ ] 11000000 > This is wrong ! - [ ] 01100000 > This is wrong ! - [ ] 11001111 > This is wrong ! ## What is the output of Left Shift Operator "<< on (00011000<<2)" ? - [x] 01100000 > This is correct ! - [ ] 11000000 > This is wrong ! - [ ] 00000110 > This is wrong ! - [ ] 00000011 > This is wrong ! ## What is the output of Exclusive OR ^ operator on 0110^1000 ? - [x] 1110 > This is correct ! - [ ] 1000 > This is wrong ! - [ ] 0011 > This is wrong ! - [ ] 0001 > This is wrong ! ## What is the output of Bitwise OR operation | on (0110 | 1100) ? - [x] 1110 > This is correct ! - [ ] 1100 > This is wrong ! - [ ] 1000 > This is wrong ! - [ ] 1010 > This is wrong ! ## What is the result of 0110 & 1100 ? - [x] 0100 > This is correct ! - [ ] 1000 > This is wrong ! - [ ] 0001 > This is wrong ! - [ ] 1010 > This is wrong ! ## What is the operator used to make 1's One's compliment ? - [x] ~ Bitwise Negate Operator > This is correct ! - [ ] & Bitwise AND Operator > This is wrong ! - [ ] | Bitwise OR operator > This is wrong ! - [ ] ^ Bitwise Exclusive OR > This is wrong ! ## What are Nibble, Word and Byte in computer language ? - [x] Byte = 8 bits, Word = 2 Bytes, Nibble = 4 Bits > This is correct ! - [ ] Byte = 8 bits, Word= 4 Bytes, Nibble = 8 Bytes > This is wrong ! - [ ] Byte = 8 bits, Word = 12 bits, Nibble = 32 Bits > This is wrong ! - [ ] Byte = 8 bits, Word = 24 bits, Nibble = 40 Bits > This is wrong !