Answer:
I am going to write a C program. The program is in the explanation. You use a simple while loop controled by a counter(don't forget to initialize nor increment the counter). Inside the while loop, you printf the ASCII value as a %d and the equivalent character as a %c.
Explanation:
#include <stdio.h>
int main(){
int i = 0;
/*While loop*/
while(i < 256){
printf("ASCII value: %d\n", i);
printf("ASCII character: %c\n", (char)i);
i++;
}
return 0;
}
Answer:
option C
Explanation:
The correct answer is option C
the uploaded image shape is ( 433 , 650 )
this shape means that the image is a grayscale image which is 433 pixels high by 650 pixels wide.
a gray scale image is in white and black color.
433 pixels high by 650 pixel wide means that the image is formed with the combination of 433 vertical dots and 650 horizontal dots.
Resolution of an image can be found out by the pixels present in the images.
higher the pixel higher is he resolution of the image.
Answer:
The function in Python is as follows:
def search_file(filename,mystring):
my_dict = {}
count = 0
file = open(filename)
lines = file.readlines()
for line in lines:
count+=1
if mystring.lower() in line.lower():
my_dict[count] = line.rstrip('\n')
return my_dict
Explanation:
This defines the function
def search_file(filename,mystring):
This initializes an empty dictionary
my_dict = {}
This initializes the number of lines to 0
count = 0
This opens the file
file = open(filename)
This reads the lines of the file
lines = file.readlines()
This iterates through the lines
for line in lines:
This increments the number line
count+=1
This checks if the string exists in the line
if mystring.lower() in line.lower():
If yes, the line number and the string are added to the dictionary
my_dict[count] = line.rstrip('\n')
This returns the dictionary
return my_dict
<h2>Answer :</h2>
Both Tech A and B
Tech A is correct, as in case of a tire is under inflated, the car tends to drag towards that side of the car which causes one-sided wear on one side of tread. Tech B is also correct as in case tire is over inflated, the surface area of that tire is majorly out of contact with the ground, due to which the center portion of the tread is affected.