WOMANIA PRELIMS

WOMANIA PRELIMS

Professional Development

25 Qs

quiz-placeholder

Similar activities

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

JS - Practice 1

JS - Practice 1

Professional Development

20 Qs

BCA - IV SEM DBMS

BCA - IV SEM DBMS

Professional Development

20 Qs

Teaching Strategy

Teaching Strategy

Professional Development

20 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Lógica Python Revisão 1º Semestre

Lógica Python Revisão 1º Semestre

Professional Development

20 Qs

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

เทคโนโลยี (วิทยาการคำนวณ) ชั้นมัธยมศึกษาปีที่ 5

Professional Development

20 Qs

DataBase Quiz - CME Workshop

DataBase Quiz - CME Workshop

Professional Development

20 Qs

WOMANIA PRELIMS

WOMANIA PRELIMS

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Naafiah Yusra

Used 6+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

#include <stdio.h>

void solve() {

int a[] = {1, 2, 3, 4, 5};

int sum = 0;

for(int i = 0; i < 5; i++) {

if(i % 2 == 0) {

sum += *(a + i);

}

else {

sum -= *(a + i);

}

}

printf("%d", sum);

}

int main() {

solve();

return 0;

}

2

15

Syntax error

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the disadvantage of arrays in C?

The amount of memory to be allocated should be known beforehand.

Elements of an array can be accessed in constant time.

Elements are stored in contiguous memory blocks.

Multiple other data structures can be implemented using arrays.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

#include <stdio.h>

void solve() {

int a = 3;

int res = a++ + ++a + a++ + ++a;

printf("%d", res);

}

int main() {

solve();

return 0;

}

12

25

20

18

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If p is an integer pointer with a value 1000, then what will the value of p + 5 be?

1020

1005

1004

1010

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following code snippet?

#include <stdio.h>

void solve() {

char ch[10] = "abcdefghij";

int ans = 0;

for(int i = 0; i < 10; i++) {

ans += (ch[i] - 'a');

}

printf("%d", ans);

}

int main() {

solve();

return 0;

}

45

36

20

100

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a storage class specifier in C?

Volatile

Extern

typedef

Static

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of linked list is best to answer questions like “What is the item at position n?”

Singly linked list

Doubly linked list

Circular linked list

Array implementation of linked list

Create a free account and access millions of resources

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?