Introduction Flashcards
Operator’s precedence determines which operator is ____________.
a.) Faster
b.) Take less memory
c.) Take no argument
d.) Evaluated first
The operator «_space;is used for ________________.
a.) Shifting bits to left
b.) Shifting bits to right
c.) Equality Checking
d.) None of these
The associability of = operator is ________.
a.) Right to Left
b.) Left to Right
c.) None of these
d.) All of above
Which statement is correct?
a.) C Library functions provide I/O facilities
b.) C inherent I/O facilities
c.) C doesn’t have I/O facilities
d.) Both (a) and (c)
Header files in C contain ___________.
a.) Compiler Commands
b.) Library functions
c.) Header information of C Programs
d.) Operators for files
Which pair is used for single character I/O.?
a.) getchar() and putchar()
b.) scanf() and printf()
c.) input() and output()
d.) None of these
The printf() returns __________ value when an error occurs.
a.) Positive value
b.) Zero
c.) Negative Value
d.) None of these
Identify wrong statement:
a.) putchar(65)
b.) putchar(‘x’)
c.) putchar(“x”)
d.) putchar(‘\n’)
Null character is represented by _____________.
a.) \n
b.) \0
c.)\o
d.)\e
Testing & Conversion character functions in C are available in ____________.
a.) ctype.h
b.) string.h
c.) math.h
d.) conio.h
An Ampersand in scanf() before the name of a variable denotes ___________.
a.) Actual Value
b.) Variable Name
c.) Address
d.) Data Type
Symbolic constants can be defined using _____________.
a.) #define
b.) const
c.) symbols
d.) None of these
Which header file is essential for using strcmp() function.?
a.) string.h
b.) strings.h
c.) text.h
d.) strcmp.h
malloc() used in Dynamic Memory Allocation is available in ____________.
a.) stream.h
b.) malloc.h
c.) alloc.h
d.) stdio.h
A statement differs from an expression by terminating with a _________.
a.) Semicolon (;)
b.) Colon (:)
c.) NULL
d.) dot (.)
C supports ________ Looping statements.
a.) 5
b.) 3
c.) 6
d.) 8
Which of the following is an unconditional control structure?
a.) Do-while
b.) if-else
c.) goto
d.) for
Which of the following is a keyword is used for a storage class.?
a.) printf
b.) external
c.) auto
d.) scanf
In C language ‘a’ represents ______________________.
a.) a digit
b.) an integer
c.) a character
d.) a word
How many keywords are available in ‘C’?
a.) 32
b.) 34
c.) 36
d.) 30
The number of Arithmetic operators in C language is ____________.
a.) 4
b.) 5
c.) 6
d.) 7
Advantage of UNION over STRUCTURE is _______________.
a.) Memory Storage
b.) Memory Location
c.) Memory Screen
d.) None of these
Maximum number of elements in the array declaration “ int arr[5][8]; ” is ________.
a.) 28
b.) 32
c.) 35
d.) 40
Array subscripts in C always start at __________.
a.) 1
b.) -1
c.) as per programmer
d.) 0
Output of the printf(“2.3f\n”,17.23478) will be _____________.
a.) 17.23478
b.) 17.235
c.) 17.2348
d.) 17.23
Which is the correct way to declare a pointer?
a.) int ptr;
b.) *int *ptr;
c.) int *ptr;
d.) *int ptr;
What will be the value of the following:
1. floor(5.8)
2. floor(-5.8)
a.) -5,-6
b.) 5, -6
c.) -5,6
d.) 5,6
What would be the value of X after execution of the following statements?
int x,y=10;
char z=’a’;
x=y+z;
a.) Invalid
b.) 17
c.) 107
d.) 10a
What will be the output the following:
#include<stdio.h>
#include<conio.h>
void main()
{
int *i, *j, a=12, b=2, c ;
c= (a=a+b, b=a/b, a=a*b, b=a-b);
i= &c;
printf (“%d”,--(*i));
}
a.) 93
b.) 92
c.) 91
d.) 90</conio.h></stdio.h>