Deck 2: C Programming Language
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/20
Play
Full screen (f)
Deck 2: C Programming Language
1
Total Number Of Keywords In C Are
A)30
B)12
C)34
D)32
A)30
B)12
C)34
D)32
32
2
The Compiler In C Ignores All Text Till The End Of Line Using
A)//
B)/
C)*/
D)/*/
A)//
B)/
C)*/
D)/*/
//
3
Printf() Belongs To Which Library Of C
A)Stdlib.H
B)Stdio.H
C)Stdout.H
D)Stdoutput.H
A)Stdlib.H
B)Stdio.H
C)Stdout.H
D)Stdoutput.H
Stdio.H
4
What Is Correct Order Of Precedence In C
A)Addition, Division, Modulus
B)Addition, Modulus, Division
C)Multiplication, Substration, Modulus
D)Modulus, Multiplication, Substration
A)Addition, Division, Modulus
B)Addition, Modulus, Division
C)Multiplication, Substration, Modulus
D)Modulus, Multiplication, Substration
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
5
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
Extern Int I;
I = 20;
Printf("%D", Sizeof(I));
Return 0;
}
A)20
B)0
C)Undefined Reference To I
D)Linking Error
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
6
Is The Following Statement A Declaration Or Definition Extern Int I;
A)Declaration
B)Definition
C)none
D)all
A)Declaration
B)Definition
C)none
D)all
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
7
Int Main() {
Int X = 10;
{
Int X = 0;
Printf("%D",X);
}
Return 0;
}
A)10
B)Compilation Error
C)'0'
D)Undefined
Int X = 10;
{
Int X = 0;
Printf("%D",X);
}
Return 0;
}
A)10
B)Compilation Error
C)'0'
D)Undefined
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
8
//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
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
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
9
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.
Int Main()
{
Int A = 10/3;
Printf("%D",A);
Return 0;
}
A)3.33
B)3.0
C)3
D)Option.
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
10
Which Of The Following Is Executed By Preprocess?
A)#Include<Stdio.H>
B)Return 0
C)Void Main(Int Argc , Char ** Argv)
D)none
A)#Include<Stdio.H>
B)Return 0
C)Void Main(Int Argc , Char ** Argv)
D)none
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
11
Int Main() {
Int A = 10.5;
Printf("%D",A);
Return 0;
}
A)10.5
B)10.0
C)10
D)Compilation Error
Int A = 10.5;
Printf("%D",A);
Return 0;
}
A)10.5
B)10.0
C)10
D)Compilation Error
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
12
Int Main() {
Int _ = 10;
Int __ = 20;
Int ___ = _ + __;
Printf("__%D",___);
Return 0;
}
A)Compilation Error
B)Runtime Error
C)__0
D)__30
Int _ = 10;
Int __ = 20;
Int ___ = _ + __;
Printf("__%D",___);
Return 0;
}
A)Compilation Error
B)Runtime Error
C)__0
D)__30
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
13
Int Main() {
Int A = 5;
Int B = 10;
Int C = A+B;
Printf("%I",C);
}
A)0
B)15
C)Undefined I
D)Any Other Compiler Error
Int A = 5;
Int B = 10;
Int C = A+B;
Printf("%I",C);
}
A)0
B)15
C)Undefined I
D)Any Other Compiler Error
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
14
int main() {
Int x;x=10,20,30;
Printf("%d",x);
Return 0;
}
A)10
B)20
C)30
D)Compilation Error
Int x;x=10,20,30;
Printf("%d",x);
Return 0;
}
A)10
B)20
C)30
D)Compilation Error
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
15
How many times C.com is printed?
Int main()
{
Int a = 0;
While(a++ < 5-++a)printf("C.com");
Return 0;
}
A)5 times
B)4 times
C)3 times
D)1 times
Int main()
{
Int a = 0;
While(a++ < 5-++a)printf("C.com");
Return 0;
}
A)5 times
B)4 times
C)3 times
D)1 times
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
16
How many times C.com is printed?
Int main()
{
Int a = 0;
While(a++ < 5)printf("C.com");
Return 0;
}
A)5 times
B)4 times
C)3 times
D)1 times
Int main()
{
Int a = 0;
While(a++ < 5)printf("C.com");
Return 0;
}
A)5 times
B)4 times
C)3 times
D)1 times
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
17
How many times C.com is printed?
Int main()
{
Int a = 0;
While(a++)printf("C.com");
Return 0;
}
A)1 time
B)0 time
C)Infinite times(Untill Stack is overflow)
D)2 times
Int main()
{
Int a = 0;
While(a++)printf("C.com");
Return 0;
}
A)1 time
B)0 time
C)Infinite times(Untill Stack is overflow)
D)2 times
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
18
How many times C.com is printed?
Int main()
{
Int a = 0;
While(++a){printf("C.com");
}
Return 0;
}
A)1 time
B)Infinite Times(Untill Stack is overflow)
C)2 times
D)Error
Int main()
{
Int a = 0;
While(++a){printf("C.com");
}
Return 0;
}
A)1 time
B)Infinite Times(Untill Stack is overflow)
C)2 times
D)Error
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
19
What is output of below program?
Int main()
{
Int i,j,count;
Count=0;
For(i=0; i<5; i++);
{
For(j=0;j<5;j++);
{
Count++;
}
}printf("%d",count);
Return 0;
}
A)55
B)54
C)1
D)0
Int main()
{
Int i,j,count;
Count=0;
For(i=0; i<5; i++);
{
For(j=0;j<5;j++);
{
Count++;
}
}printf("%d",count);
Return 0;
}
A)55
B)54
C)1
D)0
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck
20
What is output of below program?
Int main()
{
Int i,j,k,count;
Count=0;
For(i=0;i<5;i++)
{
For(j=0;j<5;j++)
{
Count++;
}
}
Printf("%d",count);
Return 0;
}
A)5
B)10
C)25
D)50
Int main()
{
Int i,j,k,count;
Count=0;
For(i=0;i<5;i++)
{
For(j=0;j<5;j++)
{
Count++;
}
}
Printf("%d",count);
Return 0;
}
A)5
B)10
C)25
D)50
Unlock Deck
Unlock for access to all 20 flashcards in this deck.
Unlock Deck
k this deck