Question
eg 112 Quiz 1 Applied Programming for Engineers zy books QUESTION 1 What is the effect of the following line of code? #include It defines
eg 112 Quiz 1
Applied Programming for Engineers zy books
QUESTION 1
-
What is the effect of the following line of code?
#include
It defines a global variable named stdio
It defines a constant used later in the program
It tells the compiler that a program is about to begin
It allows us to use functions defined in the standard input/output library
10 points
QUESTION 2
-
Which of the following lines should be used to read an integer into a program?
scanf("%d",&myVar);
scanf("%d",myVar)
scanf("%c",myVar)
scanf("%c",&myVar)
10 points
QUESTION 3
-
Which of the following is an example of an arithmetic expression?
myVar + 5
myVar = 5
myVar1 > myVar2
myVar & 0x80
10 points
QUESTION 4
-
What is the value of the following expression?
(4+1)%5;
5
1
-1
0
10 points
QUESTION 5
-
Which is not a valid variable name;
4myVar
_myVar4
_4myVar
myVar4
10 points
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started