Looking for CS101 - Introduction to Programming F1 - F24 test answers and solutions? Browse our comprehensive collection of verified answers for CS101 - Introduction to Programming F1 - F24 at moodle.medtech.tn.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Which keyword can be used to make a variable unchangeable/read-only?
How can you create a variable with the floating number 2.8?
Which function is often used to output values and print text?
Which of the following is not a correct variable type?
Which operator can be used to compare two values?
6. Which of the following is correct for comments
Which of the following is not a valid C variable name?
Let the following C program be:
#include <stdio.h>int main() { char id[10]; int hour; float value, salary; printf("Input the Employees ID(Max. 10 chars): "); scanf("%s", &id); printf("\nInput the working hrs: "); scanf("%d", &hour); printf("\nSalary amount/hr: "); scanf("%f", &value); salary = value * hour; printf("\nEmployees ID = %s\nSalary = U$ %.2f\n", id,salary); return 0;}
What will be the output for the following inputs?
Employee ID: 115
The working hours: 8
Salary amount/hr: 500
Which of the following is true for variable names in C?
Study the following program:
What will be the output of this program?