Which of the following would cause a compiler error? (Choose two)

Back to Questions
A)

float[] = new float(3);

B)

float f2[] = new float[];

C)

float[] f1 = new float[3];

D)

float f3[] = new float[3];

E)

float f5[] = { 1.0f, 2.0f, 2.0f };

 

Author Explanation :

A is incorrect because array creation syntax is wrong<br/>
B is incorrect since array size is missing

Answers Posted

PostedBy By: Sana Dhanani, at 04:40 AM on 28-June-2019

Answer Posted: A

Explanation: A and E

Result: Wrong Answer

PostedBy By: subbu. kurapati, at 10:36 AM on 26-March-2019

Answer Posted: A B

Explanation: Option A------>syntatical error OptionB------->size of array not mentioned

Result: Correct

Back to Questions

© Copyright 1997 - 2019 | www.bestdotnettraining.com | www.deccansoft.com | All Rights Reserved.
 
Bestdotnet google plus
Enquiry Now



Input symbols