Question: Choose the correct answer. Q 1 ) How do you initialize a port in C + + for pic 1 6 f 8 7 7

Choose the correct answer.
Q1) How do you initialize a port in C++ for pic16f877a? A) Use UART and SPI registers to initialize the port
B) Use TRIS and port name to initialize the port C) Use ADC and PWM registers to initialize the port
D) Use DDR and PIN registers to initialize the port
Q2) We used crystal with microcontroller to:
A) Improve the performance of microcontroller
B) Increase the efficiency of microcontroller
C) Restart the microcontroller
D) Define the speed of microcontroller
Q3) We used (master clear circuit) with microcontroller to:
A) Improve the performance of microcontroller
B) Increase the efficiency of microcontroller
C) Restart the microcontroller.
D) Define the speed of microcontroller
Q4) The ADC in microcontroller is:
A)10-bit converter
B)8-bit converter
C)13-bit converter
C) TRISB =1;
D) None of the above
D) TRISB =0;
Q5) To set the whole PORTB to output we can write the program statement as:
A) PORTB =1;
B) PORTB =0;
Q6) The statement Lcd_Out(2,1,"PIC");
A) Prints PIC on LCD at current cursor position
B) Prints PIC on LCD at row 2 and column 1
C) Prints a character on LCD at row 2 and column 1
D) Prints a character on LCD at current cursor position
Q7) The statement ADC_Read (0) in mikroC:
A) Writes the value 0 on pin A0
B) Reads the input value of pin A0
C) Reads the input value of pin A0 and coverts it to digital
D) None of the above
Q8) What language is a typical Arduino code based on?
A) Assembly Code
B) Python
C) Java
D) C/C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!