Explore topic-wise MCQs in Dell.

This section includes 47 Mcqs, each offering curated multiple-choice questions to sharpen your Dell knowledge and support exam preparation. Choose a topic below to get started.

1.

What will be the output of the following C code? #include <stdio.h> void main() { int k = 0; double b = k++ + ++k + k--; printf("%d", k); }

A. 6
B. 1
C. 5
D. undefined
Answer» E.
2.

What will be the output of the following C code? #include <stdio.h> void main() { double b = 5 & 3 && 4 || 5 | 6; printf("%lf", b); }

A. 1.000000
B. 0.000000
C. 7.000000
D. 2.000000
Answer» B. 0.000000
3.

 What will be the output of the following C code? #include <stdio.h> void main() { double b = 3 && 5 & 4 % 3; printf("%lf", b); }

A. 3.000000
B. 4.000000
C. 5.000000
D. 1.000000
Answer» E.
4.

What will be the output of the following C code? #include <stdio.h> void main() { double b = 5 % 3 & 4 + 5 * 6; printf("%lf", b); }

A. 2
B. 30
C. 2.000000
D. Run time error
Answer» D. Run time error
5.

What will be the output of the following C code? #include <stdio.h> void main() { double b = 3 % 0 * 1 - 4 / 2; printf("%lf", b); }

A. -2
B. Floating point Exception
C. 1
D. None of the mentioned
Answer» C. 1
6.

What will be the output of the following C code? #include <stdio.h> void main( { double b = 8; b++; printf("%lf", b); }

A. 9.000000
B. 9
C. 9.0
D. Run time error
Answer» B. 9
7.

What will be the output of the following C code? #include <stdio.h> void main() { int b = 6; int c = 7; int a = ++b + c--; printf("%d", a); }

A. Run time error
B. 15
C. 13
D. 14
Answer» E.
8.

What will be the output of the following C code? #include <stdio.h> void main() { int a = 5 * 3 % 6 - 8 + 3; printf("%d", a); }

A. 10
B. 2
C. -2
D. -3
Answer» D. -3
9.

What will be the output of the following C code? #include <stdio.h> void main() { int a = 2 + 4 + 3 * 5 / 3 - 5; printf("%d", a); }

A. 7
B. 6
C. 10
D. 9
Answer» C. 10
10.

What will be the output of the following C code? #include <stdio.h> void main() { int a = 5 * 3 + 2 - 4; printf("%d", a); }

A. 13
B. 14
C. 12
D. 1 6
Answer» B. 14
11.

What will be the output of the following C code? #include <stdio.h> int main() { int x = 0, y = 2; int z = ~x & y; printf("%d\n", z); }

A. -1
B. 2
C. 0
D. Compile time error
Answer» C. 0
12.

What will be the output of the following C code? #include <stdio.h> int main() { int x = 0, y = 2; if (!x && y) printf("true\n"); else printf("false\n"); }

A. True
B. False
C. Compile time error
D. Undefined behaviour
Answer» B. False
13.

What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 0; int z = x && y = 1; printf("%d\n", z); }

A. 0
B. 1
C. Compile time error
D. 2
Answer» D. 2
14.

What will be the output of the following C code? #include <stdio.h> int main() { int x = 2, y = 2; int z = x ^ y & 1; printf("%d\n", z); }

A. 1
B. 2
C. 0
D. 1 or 2
Answer» C. 0
15.

What will be the output of the following C code? #include <stdio.h> int main() { int x = 3; //, y = 2; const int *p = &x; *p++; printf("%d\n", *p); }

A. Increment of read-only location compile error
B. 4
C. Some garbage value
D. Undefined behaviour
Answer» D. Undefined behaviour
16.

 What will be the output of the following C code? #include <stdio.h> int main() { int x = 1, y = 2; int z = x & y == 2; printf("%d\n", z); }

A. 0
B. 1
C. Compile time error
D. Undefined behaviour
Answer» C. Compile time error
17.

Default storage class if not any is specified for a local variable, is auto

A. true
B. false
C. Depends on the standard
D. None of the mentioned
Answer» B. false
18.

The scope of an automatic variable is:

A. Within the block it appears
B. Within the blocks of the block it appears
C. Until the end of program
D. Both (a) and (b)
Answer» E.
19.

What is the output of this C code?   #include <stdio.h> int main() {     int a = 10;     if (a == a--)         printf("TRUE 1\t");     a = 10;     if (a == --a)         printf("TRUE 2\t"); }

A. TRUE 1
B. TRUE 2
C. TRUE 1 TRUE 2
D. No output
Answer» D. No output
20.

What is the output of this C code?   #include <stdio.h> int main() {     printf("crazyfor\code\n");     return 0; }

A. crazyforcode
B. crazyfor code
C. codeyfor
D. crazyfor
Answer» D. crazyfor
21.

What is the output of this C code?   #include <stdio.h> int main() {     char *p[1] = {"hello"};     printf("%s", (p)[0]);     return 0; }

A. Compile time error
B. Undefined behaviour
C. hello
D. None of the mentioned
Answer» D. None of the mentioned
22.

What is the output of this C code?   #include  <stdio.h> int main() {    char chr;    chr = 128;    printf("%d\n", chr);    return 0; }

A. 128
B. -128
C. Depends on the compiler
D. None of the mentioned
Answer» C. Depends on the compiler
23.

What will happen if the below program is executed?   #include <stdio.h> int main() {     int main = 3;     printf("%d", main);     return 0; }

A. It will cause a compile-time error
B. It will cause a run-time error
C. It will run without any error and prints 3
D. It will experience infinite looping
Answer» D. It will experience infinite looping
24.

What is the output of this C code?   #include <stdio.h> int main() {     printf("Hello World! %d \n", x);     return 0; }

A. Hello World! x;
B. Hello World! followed by a junk value
C. Compile time error
D. Hello World!
Answer» D. Hello World!
25.

Which is valid C expression?

A. int my_num = 100,000;
B. int my_num = 100000
C. int my num = 1000;
D. int $my_num = 10000;
Answer» C. int my num = 1000;
26.

Property of external variable to be accessed by any source file is called by C90 standard as

A. external linkage
B. external scope
C. global scope
D. global linkage
Answer» B. external scope
27.

Which of the following is not possible?

A. A structure variable pointing to itself
B. A structure variable pointing to another structure variable of same type
C. 2 different type of structure variable pointing at each other.
D. None of these
Answer» E.
28.

What is the output of this C code?   #include <stdio.h> #define foo(m, n) m * n = 10 int main() {     printf("in main\n"); }

A. In main
B. Compilation error as lvalue is required for the expression m*n=10
C. Preprocessor error as lvalue is required for the expression m*n=10
D. None of the mentioned
Answer» B. Compilation error as lvalue is required for the expression m*n=10
29.

What is the output of this C code?   #include <stdio.h> int main() {     char *str = "hello, world";     char *str1 = "hello, world";     if (strcmp(str, str1))         printf("equal");     else         printf("unequal"); }

A. equal
B. unequal
C. none
D. Depends on the compiler
Answer» C. none
30.

What is the output of this C code?   #include <stdio.h> void main() {     static int x;     if (x++ < 2)     main(); }

A. Infinite calls to main
B. Run time error
C. Varies
D. main is called twice
Answer» E.
31.

What is the output of this C code?   #include <stdio.h> struct student {     char a[5]; }; void main() {     struct student s[] = {"hi", "hey"};     printf("%c", s[0].a[1]); }

A. h
B. i
C. e
D. y
Answer» C. e
32.

What is the output of this C code?   #include <stdio.h> void main() {     int x = 97;     int y = sizeof(x++);     printf("x is %d", x); }

A. x is 97
B. x is 98
C. x is 99
D. Run time error
Answer» B. x is 98
33.

What is the scope of an external variable?

A. Whole source file in which it is defined
B. From the point of declaration to the end of the file in which it is defined
C. Any source file in a program
D. From the point of declaration to the end of the file being compiled
Answer» E.
34.

Macintosh is designed and developed by

A. Apple
B. IBM
C. Dell
D. HP
Answer» B. IBM
35.

iPad is an example of

A. Smart phone
B. Tablet
C. Laptop
D. All of the above
Answer» C. Laptop
36.

OLAP is acronym for:

A. Online Analytical Project
B. Online Analytical Processing
C. Online Application Process
D. None of the above
Answer» C. Online Application Process
37.

CBCT stands for:

A. Customer Bank Credit Terminal
B. Commercial Banking Credit Terminal
C. Customer Bank Communication Terminal
D. Commercial Bank Communication Terminal
Answer» D. Commercial Bank Communication Terminal
38.

Linux is a best described as a(n) ________ kernel.

A. monolithic
B. layered
C. micro
D. export
Answer» B. layered
39.

802.11 is the standard for _____ developed by the Institute of Electrical and Electronics Engineers (IEEE)

A. Wireless LANs
B. Ethernet
C. Bluetooth
D. Broadband Wireless
Answer» B. Ethernet
40.

The official network management protocol in TCP/IP protocol suite is called _____.

A. SNTP
B. SNMP
C. SMTP
D. DNS
Answer» C. SMTP
41.

Which protocol translates private (non routable) IP addresses into public (routable) IP addresses?

A. NAT
B. DHCP
C. DNS
D. ICMP
Answer» B. DHCP
42.

The Internet Protocol (IPv4) is an example of a:

A. connection-less network layer protocol
B. connection-oriented network layer protocol
C. connection-less transport layer protocol
D. connection-oriented transport layer protocol
Answer» D. connection-oriented transport layer protocol
43.

Which of the following is not a utility in Windows OS to ensure backup and adequate performance of an internal hard disk?

A. Backup
B. Disk Cleanup
C. Disk Defragmenter
D. Internet Explorer
Answer» E.
44.

SCSI stands for

A. Standard Computer Systems Interface
B. Small Computer Standards Interface
C. Super Computer Systems Interface
D. Small Computer Systems Interface
Answer» E.
45.

The following is the first computer printer.

A. Laser
B. Inkjet
C. Dot matrix
D. None of the above
Answer» D. None of the above
46.

The ____ is the number of times per second the electron beam scans the monitor and recharges the illumination of each pixel.

A. Resolution
B. Sharpness
C. Refresh rate
D. Dot pitch
Answer» D. Dot pitch
47.

Which input method is used mainly by banks for processing cheques?

A. OMR
B. Bard code reader
C. Light Pen
D. MICR
Answer» E.