Q1. Which of the following is used to define a function in python?

Tech quiz

Quiz
•
Other
•
University
•
Medium
Legend Chayan
Used 7+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
30 questions
ICE1111 Revision

Quiz
•
University
25 questions
Bahasa Melayu 5 Tahun alphabet

Quiz
•
University
25 questions
EXAM MMI

Quiz
•
University
25 questions
FUNCTIONS OF LAYERS & DATA LINK LAYER

Quiz
•
University
25 questions
Round 2- Syntax ShowDown

Quiz
•
University
25 questions
Con trỏ

Quiz
•
University
32 questions
Verifica Sistemi 3B 03/2025

Quiz
•
10th Grade - University
27 questions
Câu Hỏi Trắc Nghiệm Về Con Trỏ và Mảng

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade