Discussion
In line 100 INPUT NUM: PRINT 3.1*NUM*NUM+5" of a BASIC program, ' PRINT 3.1 and 5' are classified as
Answer: A
Correct answer: constants
The numbers 3.1 and 5 written directly into the expression are literal constants: their values are fixed in the program text and cannot change while it runs. NUM, by contrast, is a variable, since the INPUT statement gives it whatever the user types.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development