0

programming languages Online Quiz - 142

Description: programming languages Online Quiz - 142
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. Upper case

  2. running text

  3. Any of above

  4. Not a part of standard.


Correct Option: B
  1. program will abort

  2. command will fail but last line will remain populated in the file- variables

  3. command will fail and file-variables will be blank

  4. the program will give a compile time error


Correct Option: D
  1. NUMERIC

  2. BINARY

  3. ALPHANUMERIC

  4. ANY OF THE ABOVE


Correct Option: B
  1. MOVE 1 TO A.

  2. MOVE 1 TO A

  3. Both of the above.

  4. None of the above


Correct Option: B

3) void main() { int x=10; (x<0) ? (int a = 100) : (int a=1000); printf(“%d”,a); }

  1. 10

  2. 1000

  3. error

  4. none of this


Correct Option: C

main() { int *p1, i=25; void *p2; p1=&i; p2=&i; p1=p2; p2=p1; printf(“%d”,i); }

  1. error

  2. 25

  3. will not complie

  4. some memory address


Correct Option: B

6) void abc(int a[]) { a++; a[1] = 612; } main() { char a[5]; abc(a); printf(“%d”,a[4]); }

  1. error

  2. arbitary value

  3. 612

  4. 100


Correct Option: D

7) main() { float me=1.1; double you=1.1; if(me = = you) printf(“I love u”); else printf(“I hate you”); }

  1. I hate you

  2. I love your

  3. error

  4. will not compile


Correct Option: A

main() { printf(“\nab”); printf(“\bsi”); printf(“\rha”); }

  1. asiha

  2. hai

  3. aha

  4. siha


Correct Option: B

1)main() { int i = -1, j= -1, k=0, l=2, m; m=i++&&j++&&k++||l++; printf(“%d %d %d %d %d”,i,j,k,l,m); }

  1. -1 -1 0 2 0

  2. -1 -1 0 2 1

  3. 0 0 1 3 1

  4. 0 0 1 3 0


Correct Option: C

1)main() { printf(“%x”,-1<<4); }

  1. ffff

  2. fff0

  3. 0ff0

  4. 0fff


Correct Option: B
- Hide questions