C ,C++Questions

May 20, 2018 | Author: Haritha Yandrapragada | Category: C (Programming Language), Notation, Computer Programming, Computer Engineering, Software
Share Embed Donate


Short Description

Download C ,C++Questions...

Description

Dept. of Industrial Relations and Placements, Communication Communication and soft skills Subject Name:- C Language

1) The Real constants in C can be expressed in which of the following forms a)Fractional form only b)Exponential form only c)ASCII form only only d) a & b 2) The program, which translates high-level program into its equivalent machine language program, is called a)Transformer b)Language pr processor c)Converter d) no none of of th the above 3) Conside Considerr the followin following g statem statements ents..

i)Multiplication associates left to right ii)Division associates left to right iii) iii)Un Unar ary y Min Minus us asso associ ciat ates es rig right ht to lef leftt iv)s iv)sub ubtr trac acti tion on ass associ ociat ates es lef leftt to to righ rightt a)only i and ii are true b)a b)all are are false c)all all are true d)o d)only nly iii and iv are true

4) What will be the value of variable a in the following code? unsigned char a; a = 0xFF + 1; printf("%d", a); a)0xFF b)0x100 c)0 d)0*0 5) What is the output of the following program? program? #include void main() { printf("\n10!=9 : %5d",10!=9); } a) 10 b) Error c) None of the above

6) What is the output of the following program? program? #include void main() { int x=10; (x
View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF