logo

Crowdly

CS101 - Introduction to Programming F1 - F24

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?

 

View this question

Which of the following is not a correct variable type?

View this question

Which function is often used to output values and print text?

 

View this question

How can you create a variable with the floating number 2.8?

View this question

Which of the following is not a valid C variable name?

View this question

Which of the following is true for variable names in C?

View this question

Which operator can be used to compare two values?

View this question

6. Which of the following is correct for comments

View this question

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

 

View this question

Study the following program:

  1. main()  
  2. {  
  3.   int a =5, b = 2, c = 3;
  4.   printf("%d", a = b*c / a);
  5. }  

What will be the output of this program?

View this question

Want instant access to all verified answers on moodle.medtech.tn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!