Help with study guide!

2 vues (au cours des 30 derniers jours)
John
John le 6 Déc 2013
Commenté : Walter Roberson le 7 Déc 2013
1.The symbol & denotes the logical or-operator?
2.The symbol ~ does not denote the logical negation-operator?
3.An expression value of 5 is interpreted as true?
4.The symbol == can be used for assignments?
5.MATLAB is a compiler language?
6.More than one statement can be executed from single command line?
7. fprintf('%c','c'); , is a proper MATLAB statement?
8. y=12%3; stores the value 4 in location with name y?
9. y=(4==4); stores the value 4 in the location with name y?
10.Whatever can be accomplished with a for loop can also be accomplished with a while loop?
11.To close and save an open file on disk from a program the statement fclose(fname) is necessary?
12.The symbol %f is called a conversion control sequence?
13.The exponential notation 1.2e3 is identical to the scientific notation 1.2x e^3?
The questions are True or false . These are some of the questions I was not really sure about. Any help would be truly appreciate.
Thanks
John
  2 commentaires
Image Analyst
Image Analyst le 6 Déc 2013
Modifié(e) : Image Analyst le 6 Déc 2013
What is a "a compiler language"? A language that can create programs that are capable of being compiled as an executable? Or did you mean "a compiled language"? Meaning one that needs to be compiled before it can even be run, as opposed to an interpreted language?
John
John le 6 Déc 2013
My bad, what I meant was "compiled language". Which indeed is a true statement. MATLAB is a compiled language. Thank you for your comment.

Connectez-vous pour commenter.

Réponses (1)

Walter Roberson
Walter Roberson le 6 Déc 2013
6 false, 4 true, and 3 "sometimes".
You can look some of these up directly in the documentation. For example, you can search for
& operator
Information about assignment operators is a bit difficult to find, but see http://www.mathworks.com/help/matlab/ref/specialcharacters.html
  3 commentaires
Walter Roberson
Walter Roberson le 6 Déc 2013
I directed you towards resources that will allow you to determine the answer for yourself. And remember, you can always just type some of them into MATLAB and see what happens.
Walter Roberson
Walter Roberson le 7 Déc 2013

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by