Fundamentals of



Download 9.46 Mb.
Page12/57
Date09.01.2017
Size9.46 Mb.
#8172
1   ...   8   9   10   11   12   13   14   15   ...   57

Q.54Which relational operator is used for comparison?

(a):= (b)== (c)equal

Q.55 Which is the Boolean operator logical AND ?
(d)=


(a)& (b)| (c)&& (d)||

Q.56Evaluate !(1 && !(0||1))


(a)True (b)False

Q.57What is the result of 16>>2?

(c)Error (d)Cannot be evaluated


(a)1 (b)8 (c)2 (d)4

Q.58 Find the output of the following program?

#include Void main()

{

char letter=’ ’



printf(\n%c letter)

}


(a)A (b)65 (c)Error
Q.59 Find the output of the following program

#include



void main()

(d)Garbage value




{

Int a;



Printf(%d a^a)

}

(a)1 (b)0 (c)infinite (d)Error





Q.60 find the output of the following program?

#include



void main()

{

int x=0,y=0; x=(y=75)+9; printf(“\n%d %d” x y)



}

(a)75,9 (b)75,84 (c)84,75


(d)None of above





Q.61Find the output following C program?

#include<stdio.h>

#define a 5+2

int main()

{

int ans; ans=a*a*a; printf(“%d” ans) return 0;



}

(a)133 (b)343 (c)27 (d)None of above





Q.62 Find the output the following C program?

#include



int main()

{

char x=65; x=x+10; printf(“%d” x) return 0;



}

(a)21 (b)18
Q.63 Find the output of the following c program?

#include<stdio.h>

{

Int i=4,ans;



ans=++i+ ++i + ++i;

printf(%d ans)

(c)15 (d)None of above






Q.64 Find the output of the following c program?

#include<stdio.h>

{

Int xa=10;



printf(%d%d%d x x++ ++x)

return 0;

}

(a)11 11 11 (b)12 10 10 (c)12 11 10 (d)12 11 11





Q.65 Find the output of the following C program?

#include<stdio.h>

int main()

{

Printf(“%d” sizeof(3 3))



Return 0;

}

(a)2 (b)4 (c)8


Q.66 Find the output of the following C program?

#include



int main()

{

int i=32,j=32,k,l,m;



k=i|j;

I= i &j;

m=k^I;

printf(%d %d %d %d %d\n = j k = m)

return 0;

}

(a)0,0,0,0,0 (b)0,32,32,32,32 (c)32,32,32,32,0 (d)32,32,32,32,32


Q.67 What are the different type of real data type in C?

(d)compiler error




(a)float,double,char

(c)float,double,long double

(b)short int,double,long int

(d)double,long int,float





Q.68 Which of the following is not logical operator ?

(a)& (b)&& (c)||


Q.69 What is the output following C program?

#include<stdio.h>

int main()

{

int k,num=30;



k=(num < 10) ? 100:200;

printf(%d%d num k)
(d)!



Q.70 Find the output of the following C program?

#include<stdio.h>

int void()

{

int x,y,z; x=y==z=1; z=++x||++y &&++z;



printf(x=%d” y=%d z=%d\n x y z)

return 0;

}


(a)x=2,y=1,z=1 (c)x=2,y=2,z=2

(b)x=2,y=2,z=1 (d)x=1,y=2,z=1





Q.72 A procedure oriented programming uses


(a)botton up approach

(c)both(a)&(b)

Q.73 C programming language is

(a)object oriented programming language



(b)top bottom approach

(d)None of the above


(b)Procedure oriented programming language (c)function oriented programming language (d)None of above

Q.74 Which of the following special symbol is not allowed in C programming language?

(a)$ (b)- (c)+- (d)+

Q.75 Which of the following is not a keyword


(a)void (b)int (c)main

Q.76 Which of the following is a keyword

(d)for


(a)main() (b)signed (c)integer (d)floating

Q.77Which of the following identifier is


incorrect

(a)char (b)_int (c)_char

Q.78 Which of the following identifier is incorrect

(d)_float


(a)int_ (b)34_ (c)son_ (d)s1_

Q.79 Which of the following identifier is correct


(a)#no (b)_no (c)@no

Q.80 Which of identifier is incorrect

(d)&no


(a)number (b)num1 (c)num_ber (d)num ber

Q.81 Which of the following identifier is incorrect


(a)Int (b)INT (c)INt

Q.82 Which of the following identifier is correct

(d)int


(a)Simple_Int (b)void (c)#3_friends (d)3 friends

Q.83The memory space taken for a char type data is

(a)2 bytes (b)4 bytes (c)8 bytes (d)1bytes



Q.84 The memory space taken for a int type data is

(a) 2 bytes (b) 4 bytes (c) 8 bytes (d)10bytes

Q.85 The memory space taken for a float type data is

(a) 2 bytes (b) 4 bytes (c) 8 bytes (d)10bytes Q.86 The memory space taken for a long double type data is (a) 2 bytes (b) 4 bytes (c) 8 bytes (d)10bytes



Q.87 The memory space taken for a long int type data is

Prepared By:- Mr. Pawar A. B.



26


(a) 2 bytes (b) 4 bytes (c) 8 bytes (d)10bytes Q.88 The memory space taken for a signed char type data is (a) 2 bytes (b) 4 bytes (c) 8 bytes (d)10bytes Q.89 Which of the following is not an escape sequence

(a)\n (b)\b (c)\c (d)\a Q.90 Which of the following is an escape sequence (a)\d (b)\e (c)\f (d)\g



Download 9.46 Mb.

Share with your friends:
1   ...   8   9   10   11   12   13   14   15   ...   57




The database is protected by copyright ©ininet.org 2024
send message

    Main page