TARANG 2023 Technical Quiz

TARANG 2023 Technical Quiz

University

50 Qs

quiz-placeholder

Similar activities

InfoMgt Long Quiz 1

InfoMgt Long Quiz 1

University

50 Qs

ULANGAN HARIAN 3 -  SISTEM KOMPUTER

ULANGAN HARIAN 3 - SISTEM KOMPUTER

10th Grade - University

50 Qs

Midterm Exam for AST 122

Midterm Exam for AST 122

University

50 Qs

CCNA 2 Module 1-4

CCNA 2 Module 1-4

University

51 Qs

Year 11 January Recap

Year 11 January Recap

University

50 Qs

COMBINATIONAL  DIGITAL CIRCUITS

COMBINATIONAL DIGITAL CIRCUITS

University

55 Qs

LATIHAN SOAL

LATIHAN SOAL

10th Grade - University

50 Qs

SD (stack, queue, graph)

SD (stack, queue, graph)

University

50 Qs

TARANG 2023 Technical Quiz

TARANG 2023 Technical Quiz

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Seshadri Chinta

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of following code snippet?

#include<stdio.h>

int main()

{

char buf[100]="hello";

int num=2083938;

sprintf(buf,"num=%d",num);

return 0;

}

hello

num=2083938

Compilation error

None

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of following code snippet?

#include<stdio.h>

int main()

{

char buf[100]="hello";

sprintf(buf,"Who are you?",num);

printf(“%s”,buf);

return 0;

}

hello

helloWhoareyou?

Who are you?

Error

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of this C code?

void main()

{

char *p = calloc(100, 1);

p = "welcome";

printf("%s\n", p);

}

Segment Fault

Garbage

Error

welcome

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Guess the output of following code snippet?

#include<stdio.h>

int main()

{

int a,b,c;

a=12;

b=++a+a++;

c=b--+a++;

printf("a=%d b=%d c=%d",a,b,c);

return 0;

}

a=14 b=26 c=40

a=15 b=23 c=38

a=15 b=26 c=41

a=14 b=25 c=39

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What should be filled in #line to get output: a=25 in the following code snippet?

#include<stdio.h>

int main()

{

int a;

a=12;

#line

printf("a=%d”,a);

return 0;

}

a+++a;

a=++a+a;

a=a+++a++;

a=a+++a;

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

When a C program is started, O.S environment is responsible for opening file and providing pointer for that file?

Standard input

Standard output

Standard error

All of the mentioned

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does AWT stands for?

All Window Tools

All Writing Tools

Abstract Window Toolkit

Abstract Writing Toolkit

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?