
Tech quiz
Authored by Legend Chayan
Other
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q1. Which of the following is used to define a function in python?
A.)function
B.)def
C.)func
D.)define
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q2)What is the correct syntax to declare a pointer in C?
A)int ptr
B)int* ptr
C)ptr int
D)int &ptr
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Q3.)Choose the odd one out?
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
4.) Identify the output of the following code:
#include <stdio.h>
int main() {
int a = 5;
printf("%d", a++);
return 0;
}
A.)5
B.)6
C.)4
D.)none
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
5.) Which function is used to allocate memory dynamically in C?
A. malloc()
B. alloc()
C. memory()
D. calloc()
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
6. Which header file is required for using printf() function?
A. stdio.h
B. conio.h
C. stdlib.h
D. string.h
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
7. Which of the following is a logical operator in C?
A. &&
B. ||
C. !
D. All of the above
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 Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?