Quiz1 Name: Mark the best answer 1) function used to produce output is a) mairn
ID: 3875011 • Letter: Q
Question
Quiz1 Name: Mark the best answer 1) function used to produce output is a) mairn b) atring.h c) scanf d) printt e) return 2) The translation of c language to machine language is called: a) programming b) C++ c) editing d) compiling e) saving 3) A data type used to store integers is: a) main b) float c) atring d) int e) char 4) A data type used to store numbers with fractional parta is: a) main b) float c) string d) int e) char 5) The operator in C means: a) test two values for equality b) do arithmetic with two values c) assign a value to a variable d) print a value e) create a variable 6) A variable is: a) written in single quotes b) a named storage location c) always int d) main e) written in double quotes 7) Which of the following indicates a newline in the c language? d) double quotes a) b) n c) conversion specifier Mark the following as True or False Conversion specifiers are mis-named, they really have nothing to do with conversion. 8) 9) The main() function is the starting point of a c program. 10) since comments are not required, we should not use them. Cscl1:11iPolein 1/10/18Explanation / Answer
Answer:
1.Correct Answer is Option D i.e printf
Explanation: printf is the predefined function in c language used print the value which is given on console so that the programer can view.
Example : printf("Welcome to C Programming");
printf("Enter any character is %c ", ch);
2.Correct Answer is Option A i.e programming
Explanation:In general building of a programming language from other programming language by following the similar syntax and memory allocation followed by libraries is known as programming which is written by programmer.
3.Correct Answer is Option D i.e int
Explanation: Integer values in general look like 0,1,2,....n which are allocated in memory as a single unit which are named as datatype which is used to store integers is called integer.
4.Correct Answer is Option B i.e float
Explanation: Decimal or fractional part values in general look like 1.26,2.76,3.87....etc which are allocated in memory as a single unit which are named as datatype which is used to store decimal values is called float.
5.Correct Answer is Option C i.e assign a value to a variable.
Explanation: In C language " = " operator is used to assign a value to a variable which is written as int a = 10; where the value of 10 is assigned to variable " a " using " = " operator.
6.Correct Answer is Option B i.e a named storage location.
Explanation: In C language we store the values which are generated in a specific memory location using different datatypes based on values known as variables. For example : int a = 42; In above " a " is the memory allocation allocated to store value of 42 which is of type int known as variable.
7.Correct Answer is Option B i.e .
Explanation: The newline in C language is used to print the message or value in the next line based on the user requirement. For example : printf("Enter any value is %d ", test); In above the value of "test" will be printed in the next line in console.
8.Correct Answer is False.
9.Correct Answer is True.
Explanation : Any C language program starts with execution starts from main() function.
10.Correct Answer is False.
Explanation: Comments are essential in any program so that the functionality can be understood by any other programmer when needed or required.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.