
Microcontroller-Chapter 2 (Part 1)
Authored by Wany Zamani
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct symbol used for multiple-line comments in C?
// comment //
/* comment */
# comment #
-- comment --
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement best describes the use of multiple-line comments in C?
They are used only at the beginning of the program.
They provide a deeper explanation and can span several lines.
They must always appear after a return statement.
They are automatically converted into documentation files.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the function of the TRIS register in a PIC microcontroller?
To store data temporarily in memory
To set the clock frequency of the microcontroller
To enable or disable interrupts
To control whether each pin in a PORT is input or output
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly describes the effect of setting TRISB = 0x00; in a PIC microcontroller?
All pins of PORTB are configured as input.
All pins of PORTA are configured as input.
All pins of PORTA are configured as output.
All pins of PORTB are configured as output.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main function of an ADC (Analogue-to-Digital Converter) in a PIC microcontroller?
To convert digital signals into analogue signals
To convert analogue signals into digital signals
To amplify analogue signals
To generate analogue signals from sensors
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the effect of the instruction ADCON0 = 0x00; in a PIC program?
It turns the ADC on.
It sets all PORTA pins as analogue.
It turns the ADC off.
It converts all bits to input mode.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which register controls the internal oscillator block in a PIC microcontroller?
T0CON
ADCON0
OSCCON
OPTION_REG
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
C++ Array Quiz
Quiz
•
University
15 questions
Computer Applications in Banking and Finance Quiz
Quiz
•
University
10 questions
Node.js
Quiz
•
University
15 questions
Mikropemproses dan Mikropengawal
Quiz
•
12th Grade - University
10 questions
PHP Introduction - Assignment 1
Quiz
•
University
10 questions
margaret hamilton
Quiz
•
University
9 questions
BASIC HTML
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade