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
Code Carrer 1st Year

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
25 questions
Conceptos básicos de C++

Quiz
•
University
32 questions
C Language

Quiz
•
University
25 questions
SET 2

Quiz
•
University
25 questions
Round 2- Syntax ShowDown

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade