Mastering Programming Concepts

Mastering Programming Concepts

University

27 Qs

quiz-placeholder

Similar activities

computer science

computer science

KG - Professional Development

23 Qs

BTEC Coding & Logic

BTEC Coding & Logic

12th Grade - Professional Development

24 Qs

Pig Quiz-1

Pig Quiz-1

University

22 Qs

kuis 4

kuis 4

University

22 Qs

Estruturas de Dados e Algoritmos

Estruturas de Dados e Algoritmos

University

22 Qs

Html Basico1

Html Basico1

University

23 Qs

ARQUITECTURAS

ARQUITECTURAS

University

23 Qs

Inside a computer

Inside a computer

University

23 Qs

Mastering Programming Concepts

Mastering Programming Concepts

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Mr. Gogoi

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

27 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of accessing an element in an array?

O(n^2)

O(log n)

O(1)

O(n)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration of a pointer in C?

int ptr;

float *ptr = NULL;

char ptr;

int *ptr;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: int a = 5; printf('%d', a++);?

5.0

5

4

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of a stack data structure?

To store data in a First In, First Out (FIFO) manner.

To maintain a sorted list of elements.

To manage data in a Last In, First Out (LIFO) manner.

To allow random access to elements in any order.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In C, how do you declare a function that returns an integer?

void functionName() {}

int functionName() {}

int functionName[] {}

function intName() {}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? int x = 10; printf('%d', ++x);

x

12

10

11

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses LIFO (Last In, First Out) principle?

Queue

Linked List

Stack

Array

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers