Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

NI CLAD Exam - Topic 6 Question 55 Discussion

Actual exam question for NI's CLAD exam
Question #: 55
Topic #: 6
[All CLAD Questions]

You are inputting data that represents a circle. The circle data includes an x position, a y position, and a radius. All three pieces of data are double-precision. In the future, you might need to store the color of the circle, represented as an integer. How should you represent the circle on your front panel window?

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Nichelle
2 days ago
I practiced something similar where we had to represent shapes, but I can't remember if we used enums for colors or just integers. It’s a bit confusing!
upvoted 0 times
...
Denise
7 days ago
I feel like we might need to consider how to handle the color later. Should we just add an integer to our existing structure, or create a new one?
upvoted 0 times
...
Hyman
30 days ago
I'm not entirely sure if we should use a class or just a simple array. I remember a practice question where we had to choose between the two, but I can't recall the details.
upvoted 0 times
...
Diego
1 month ago
I think we should create a structure or class to hold the x, y, radius, and maybe color later on. That seems like a good way to organize the data.
upvoted 0 times
...
Delsie
1 month ago
Hmm, I'm not totally sure how to best represent the circle. Should I use a built-in control or create a custom one? And how do I want to handle the color data? I'll need to review the options and think through the best approach.
upvoted 0 times
...
Tammi
2 months ago
No problem, I've done this kind of thing before. I'd create a circle object with x, y, radius, and color properties. Then I can just update those properties based on the input data and display the circle on the front panel.
upvoted 0 times
...
Audria
2 months ago
I'm a little unsure about how to handle the color. Should I create a separate color property or try to pack it into the radius or something? I'll have to think through the best way to represent that.
upvoted 0 times
...
Kimberlie
2 months ago
Okay, this seems straightforward. I'd create a custom circle control and expose properties for the x, y, and radius. Then I can just update those properties with the input data.
upvoted 0 times
...
Lezlie
2 months ago
Hmm, I think I'd use a circle indicator and set the x, y, and radius properties based on the input data. I'd also add a color property to store the integer color value.
upvoted 0 times
...

Save Cancel