MCQ 11 MarkInput in a program can be possible using which of the following device?✓KeyboardBSpeakerCPrinterDMonitorAnswerCorrect option: A. KeyboardView full question & answer→
MCQ 21 MarkWhich of the following are useful in C language I /0 operations?A MonitorB KeyboardC Mouse✓ All of the givenAnswerCorrect option: D. All of the givendView full question & answer→
MCQ 31 MarkWhich of the following function is more appropriate for accepting a string?A getch ( )✓ gets ( )C getchar ( )D getc ( )AnswerCorrect option: B. gets ( )bView full question & answer→
MCQ 41 MarkWhile reading string using %s format specifier in scanf () _______is not required with string variable.A ,B %C blank space✓ &AnswerCorrect option: D. &dView full question & answer→
MCQ 51 Mark%s format specification stops its reading when ________ encounters in input.AA numbersB expressionC character✓ blank spaceAnswerCorrect option: D. blank spacedView full question & answer→
MCQ 61 MarkWhat will be the value of variable a if "computer is my favourite subject" is given as input for scanf("%s". a); ?A computer is my favourite subjectB subjectC favourite✓ computerAnswerCorrect option: D. computerdView full question & answer→
MCQ 71 MarkWhat will be the value of variable a, b and c if a 75.5 21 is given as input for scanf(‘%c %d %d”, &a ,&b ,&c );?A ‘a’ 75.5B ‘a’ 21✓ ‘a' 75 5D ‘a’ 75 21AnswerCorrect option: C. ‘a' 75 5cView full question & answer→
MCQ 81 MarkWhat will be the value of variable a. b and c tf 243 567 is given as input for scanf("%c %3d %2d”, &a &b ,&c); ?A 2 435 67✓ 2 43 56C 243 567 2D "2" 435 67AnswerCorrect option: B. 2 43 56bView full question & answer→
MCQ 91 MarkWhich of the following input is wrong for scanf("%c%d %d", &a, &b, &c)?✓ a 12.45 23B a 123 23C a 1234 23D a 12345 6AnswerCorrect option: A. a 12.45 23aView full question & answer→
MCQ 101 Mark%L format specifier in scanfi) readsA long real numberB short integerC short integer✓ double long real numberAnswerCorrect option: D. double long real numberdView full question & answer→
MCQ 111 Mark%u format specifier in scanf ( )reads_____.A an integer✓ unsigned integerC short integerD long IntegerAnswerCorrect option: B. unsigned integerbView full question & answer→
MCQ 121 Mark______ format specification in scanf ( ) reads real numbers.A %fB %cC %g✓ All of the givenAnswerCorrect option: D. All of the givendView full question & answer→
MCQ 131 Mark_______ format specification in scanf ( ) reads a long integer.A %dB %f✓ %ldD %LAnswerCorrect option: C. %ldcView full question & answer→
MCQ 141 MarkIn scanf ( ). & is not required while reading _______.A IntegerB floatC character✓ stringAnswerCorrect option: D. stringdView full question & answer→
MCQ 151 Mark%s format specifier in scanf ( ) reads a_______.A character✓ stringC short integerD long IntegerAnswerCorrect option: B. stringbView full question & answer→
MCQ 161 Mark%lf format specification in scanf ( ) reads a _______.A long integer✓ long double real numberC double real numberD real numberAnswerCorrect option: B. long double real numberbView full question & answer→
MCQ 171 Markformat specifier in scanf ( ) represents unsigned integer.A %dB %ld✓ %uD %hAnswerCorrect option: C. %ucView full question & answer→
MCQ 181 Mark_______ format specifier in scanf ( ) represents real (float) data type.A %fB %eC %g✓ All of the givenAnswerCorrect option: D. All of the givenDView full question & answer→
MCQ 191 Mark _______format specifier in scanf ( ) reads a character.✓ %cB %sC %dD %chAnswerCorrect option: A. %caView full question & answer→
MCQ 201 Mark_______ format specifier in scanf ( ) reads a short integer.✓ %hB %uC %gD %ldAnswerCorrect option: A. %haView full question & answer→
MCQ 211 Mark_______ format specifier in scanf ( ) reads a decimal integer.A %c✓ %dC %sD %uAnswerCorrect option: B. %dbView full question & answer→
MCQ 221 MarkThe input data items must match with the control specifications of _______in order and data types.A gets ( )B %✓ scanf ( )D getchar ( )AnswerCorrect option: C. scanf ( )cView full question & answer→
MCQ 231 Mark_______represents data type in %Ip?A IB %✓ pD all of givenAnswerCorrect option: C. pcView full question & answer→
MCQ 241 MarkWhat does p represents in %Ip?✓ data typeB parameterC pointerDD variableAnswerCorrect option: A. data typeaView full question & answer→
MCQ 251 Mark______ is optional in %Ip?A%B p✓ ID All of the genAnswerCorrect option: C. IcView full question & answer→
MCQ 261 MarkWhat does represents in %p?A light✓ lengthC lengD languageAnswerCorrect option: B. lengthbView full question & answer→
MCQ 271 MarkIn scanf ( )statement, the general format of control string is _______.A / IpB +lp✓ %ipD -IpAnswerCorrect option: C. %ipcView full question & answer→
MCQ 281 MarkIn scanf ( ) statement each formal must be preceded by_______ sign.A /✓ %C !D % sAnswerCorrect option: B. %bView full question & answer→
MCQ 291 MarkThe ______ in C specifies the memory location of the variable.A %dB %c✓ &D %sAnswerCorrect option: C. &CView full question & answer→
MCQ 301 MarkThe ______sign in C is known as address of operator.✓ &B !C #D >AnswerCorrect option: A. &aView full question & answer→
MCQ 311 MarkThe _______ specifies the order in which variable values appear in the input.AA Input stringB control stringCC format string✓B or CAnswerCorrect option: D. B or CdView full question & answer→
MCQ 321 MarkIn C, each variable is identified by its name as well as ______ in scanf ( ) statement.A #B <✓ &D >AnswerCorrect option: C. &cView full question & answer→
MCQ 331 Mark Which of the following is formatted Input function?A getchartB getcheC printf✓ scanfAnswerCorrect option: D. scanfdView full question & answer→
MCQ 341 MarkWhich of the following function reads a character without using a standard Input device?A getchar( )B getch ( )✓ getcD gets ( )AnswerCorrect option: C. getccView full question & answer→
MCQ 351 MarkThe______ function will read characters until a new line character is entered by the user.A getchar ( )B getc ( )✓ gets ( )D gewords( )AnswerCorrect option: C. gets ( )cView full question & answer→
MCQ 361 MarkEach string in C ends withA .✓ \0C\tD \nAnswerCorrect option: B. \0BView full question & answer→
MCQ 371 MarkIn C, strings are enclosed within _________.A ‘ ‘(single quotes)✓ “ “ (double quotes)C <>D round bracketsAnswerCorrect option: B. “ “ (double quotes)bView full question & answer→
MCQ 381 Mark_______function reads a character from a file instead of the standard input device.A A getfc ( )B getch ( )✓ getc ( )D gets ( )AnswerCorrect option: C. getc ( )cView full question & answer→
MCQ 391 Mark_______ function is used when the user don't want to show a character typed in by him on the screen.A getc ( )B getst ( )✓ getch ( )D getchar ( )AnswerCorrect option: C. getch ( )cView full question & answer→
MCQ 401 MarkWith _______ function, the character keyed in will not be echoed on the screen.A getc ( )✓ getch ( )C gets ( )D getchar ( )AnswerCorrect option: B. getch ( )bView full question & answer→
MCQ 411 MarkWhen _______function is encountered, the program will wait for the user to press enter key after giving the required character as input.A getc ( )✓ getchar ( )C gets ( )D getch ( )AnswerCorrect option: B. getchar ( )bView full question & answer→
MCQ 421 MarkOne of the simplest way to read a character in a C program at runtime is to use the _____function.A getc ( )B getch ( )C getche ( )✓ getchar ( )AnswerCorrect option: D. getchar ( )dView full question & answer→
MCQ 431 Mark_______means standard input-output header file.A stdio.hf✓ stdio.hC sioh.fD none of the givenAnswerCorrect option: B. stdio.hbView full question & answer→
MCQ 441 MarkIt is not necessary to include stdio.h file while using function.A printf ( )B getchar ( )C putchart ( )✓ scanf ( )AnswerCorrect option: D. scanf ( )dView full question & answer→
MCQ 451 MarkWhich of the following statement informs the compiler to find stdio.h file and place its content in the beginning of C program?A # compare <stdio.h>B # compile <stdio.h>✓ #include <stdio.h>D None of the givenAnswerCorrect option: C. #include <stdio.h>cView full question & answer→
MCQ 461 MarkWhich of the following file contains various input and output operations related functions?AA math h✓ stdio.hC conto.hD string hAnswerCorrect option: B. stdio.hbView full question & answer→
MCQ 471 MarkA variable can be given input using _______In a C program.✓ assignment operatorB bitwise operatorC special operatorD ternary operatorAnswerCorrect option: A. assignment operatoraView full question & answer→
MCQ 481 MarkIn how many ways a variable can be given an input?✓2B3C4D5AnswerCorrect option: A. 2aView full question & answer→
MCQ 491 MarkOutput means____.A to read data from any input devices like keyboard, disk, et✓ to write data to output devices like monitor. printers, etCboth A and BD none of the givenAnswerCorrect option: B. to write data to output devices like monitor. printers, etbView full question & answer→
MCQ 501 MarkInput means________.✓ to read data from any input devices like keyboard, disk, etB to write data to output devices like monitor, printers, etCboth A and BD none of the givenAnswerCorrect option: A. to read data from any input devices like keyboard, disk, etaView full question & answer→